mipmip
1/7/2016 - 5:30 PM

RubyMotion & GRMustache Trivial Example

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