# File lib/haml/template/plugin.rb, line 33 def cache_fragment(block, name = {}, options = nil) @view.fragment_for(block, name, options) do eval("_hamlout.buffer", block.binding) end end
# File lib/haml/template/plugin.rb, line 17 def compile(template) options = Haml::Template.options.dup if (ActionPack::VERSION::MAJOR >= 4) && template.respond_to?(:type) options[:mime_type] = template.type elsif template.respond_to? :mime_type options[:mime_type] = template.mime_type end options[:filename] = template.identifier Haml::Engine.new(template.source, options).compiler.precompiled_with_ambles([]) end
# File lib/haml/template/plugin.rb, line 15 def handles_encoding?; true; end