fitemp

html template engine

npm install fitemp
3 downloads in the last week
12 downloads in the last month

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    
*/
});
npm loves you