DomTemplate Example
Normally any ${} element will be processed as a property path (that is a set of properties separated by '.') However DomTemplate also supports using arbitrary JavaScript inside ${}, when the { allowEval:true } option is used.
HTML
<script src="https://github.com/joewalker/domtemplate/raw/master/lib/domtemplate.js"></script>
<div id="ex3">${console.log('hi'); document.createTextNode('BANG!')}</div>
JavaScript
template('ex3', null, { allowEval:true });