Wrapper class for https://github.com/janl/mustache.js.

Class name

E.widget.mustache (0.2.0)

Methods

Method Parameters Returns Description Example
attr key, value this Add attribute key/value to component attr('id','myicon')
build string Build string of component markup build()
append jquery selector boolean Build and append string to DOM append('#mydiv')
child template, data this Add block to render block('Hello {{name}}!', {"name":"World"})

Examples

Sample

Hello Random User! How are you this afternoon?

Last modified: 2016-02-05