var r = document.getElementById("r"); var test = _.template("Hello <%= str %>"); r.innerHTML = test({str: 'world!'}); // => "Hello world";