Method: MustacheRender::Mustache#context

Defined in:
lib/mustache_render/mustache.rb

#contextObject

A helper method which gives access to the context at a given time. Kind of a hack for now, but useful when you’re in an iterating section and want access to the hash currently being iterated over.



52
53
54
# File 'lib/mustache_render/mustache.rb', line 52

def context
  @context ||= Context.new(self)
end