Navigation Menu

Skip to content

yessky/JST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JST

light and fast javascript template engine

Getting Started

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>

Documentation

(Coming soon)

Examples

(Coming soon)

Release History

(Nothing yet)

About

light and fast javascript template engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published