Sha256: 08958fdc8e3b8b8768885d1dbf98baf62fda3a923e0f7c9ccd4d2bb4f9c83590
Contents?: true
Size: 616 Bytes
Versions: 6
Compression:
Stored size: 616 Bytes
Contents
module Sproutcore module Renderers class Haml def initialize(html_context) @html_context = html_context end def compile(input) require 'haml' ::Haml::Engine.new(input).send(:precompiled_with_ambles, []) end def concat(string, binding) eval("_hamlout", binding).push_text string end def capture(*args, &block) if @html_context.respond_to?(:is_haml?) && @html_context.is_haml? @html_context.capture_haml(nil, &block) else block.call(*args).to_s end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems