Hogan.js

Add templates to templates.html:

    <div class="template" id="example">
        <p>Hello, {{ name }}, welcome to Mustache!</p>
    </div>

Compile them:

    RESTemplates.load("example")

Use them:

    RESTemplates.example.text({ name: "test" });
    //    <p>Hello, test, welcome to Mustache!</p>
    RESTemplates.example.html({ name: "test" });
    //    jQuery HTML fragment