light and fast javascript template engine
Download the production version or the development version.
In your web page:
<script src="src/JST.js"></script>
<script>
var data = {
name: 'aaron',
hobbies: ['snooker', 'swimming', 'LOL','dota'];
};
var tpl = 'Folloing list <%=name%>\'s hobbies!<ul>' +
'<%var i = -1, item;while((item=hobbies[++i])){%>' +
'<li><%=i%>. <%=item%></li>' +
'</ul>';
JST.cache( 't-1', tpl );
var templateString = JST( 't-1', data );
</script>
(Coming soon)
(Coming soon)
(Nothing yet)