Walrus.js is given with a really lightweight but useful templating language, First you can create a template in html and specify the javascript data you want in it:


Hello {{name}}

Now to change name to your javascript variable use the Walrus.compile() function like this:

    var name = 'John';
    var content = document.getElementById('templating').innerHTML;
    var domContent = Walrus.compile(content, name);