class Middleman::Renderers::HamlTemplate
in. So we have to resort to heavy hackery :(
thus making it impossible to pass our Middleman instance
Haml precompiles filters before the scope is even available,
def evaluate(scope, locals, &block)
def evaluate(scope, locals, &block) options = @options.merge(filename: eval_file, line: line, context: @context || scope) @engine = ::Haml::Engine.new(data, options) output = @engine.render(scope, locals, &block) output end
def initialize(*args, &block)
def initialize(*args, &block) super @context = @options[:context] if @options.key?(:context) end
def prepare
def prepare end