Method: Mustache.partial
- Defined in:
- lib/mhaml/mustache_override.rb
.partial(name, context) ⇒ Object
3 4 5 6 |
# File 'lib/mhaml/mustache_override.rb', line 3 def self.partial(name, context) file = File.read("#{template_path}/#{name}.#{template_extension}") Haml::Engine.new(file).render(Object.new, context) end |