RubyMotion & GRMustache Trivial Example
def render
nameRenderingObject = GRMustacheRendering.renderingObjectWithBlock( lambda do | tag, context, htmlsafe, error |
return "Arthur & Cie"
end)
data = { "name" => nameRenderingObject }
rendering = GRMustacheTemplate.renderObject(data, fromResource:"Document", bundle:nil, error:nil)
p rendering
end
{{ name }}
{{{ name }}}