Method: MustacheRails#render
- Defined in:
- lib/question_chain/mustache_rails.rb
#render(data = template, ctx = {}) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/question_chain/mustache_rails.rb', line 31 def render(data = template, ctx = {}) if self[:_raw] == true @raw_template else templateify(data).render(context.update(ctx)) end end |