Module: MHaml::Mustache
- Defined in:
- lib/mhaml/railtie.rb
Class Method Summary collapse
Class Method Details
.call(template) ⇒ Object
5 6 7 8 9 |
# File 'lib/mhaml/railtie.rb', line 5 def self.call(template) ::Mustache.template_path = MHaml.template_base_path haml = "Haml::Engine.new(#{template.source.inspect}, local_assigns).render" mustache = "Mustache.render(#{haml}, local_assigns).html_safe" end |
.escape_mustache(source) ⇒ Object
11 12 13 |
# File 'lib/mhaml/railtie.rb', line 11 def self.escape_mustache(source) source end |