class Tilt::LiquidTemplate

time when using this template engine.
It’s suggested that your program require ‘liquid’ at load
LiquidTemplate does not support yield blocks.
to #to_h it will be ignored.
as a hash by responding to #to_h. If the scope does not respond
support a scope, the scope must be able to represent itself
does not provide direct access to execuatable scopes. In order to
Liquid is designed to be a safe template system and therefore
/
Liquid template implementation. See:

def allows_script?

def allows_script?
  false
end

def evaluate(scope, locs)

def evaluate(scope, locs)
  locals = {}
  if scope.respond_to?(:to_h)
    scope.to_h.each{|k, v| locals[k.to_s] = v}
  end
  locs.each{|k, v| locals[k.to_s] = v}
  locals['yield'] = block_given? ? yield : ''
  locals['content'] = locals['yield']
  @engine.render(locals)
end

def prepare

def prepare
  @options[:line_numbers] = true unless @options.has_key?(:line_numbers)
  @engine = ::Liquid::Template.parse(@data, @options)
end