Class: Mustache::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/mustache.rb

Instance Method Summary collapse

Instance Method Details

#route(str, indentation = '') ⇒ Object



11
12
13
14
15
16
# File 'lib/ext/mustache.rb', line 11

def route(str, indentation = '')
  mustache = mustache_in_stack
  part = str.to_s.gsub(/^/, indentation)

  result = mustache.render(part, self)
end