0.0.2 • Published 11 years ago

fitemp v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
11 years ago

A Very Simple HTML Template Engine

Installation:

npm install fitemp

In HTML

<script src="./fitemp.js"></script>

API

<ul>
<%  for(var i = 0; i < year.length; i++){ %>
    <li><%year[i]%>年大吉</li>
<% } %>
</ul>
//-----
var tpl = require('fitemp');
tpl.render(id,{
	year:	['鼠','牛','虎','兔','龙','蛇','马','羊','猴','鸡','狗','猪']
/*		
 * @param id or html str    
*/
});