A lightweight, high-performance JavaScript template engine.
(
npm |
GitHub |
码云 |
Blog
)
<ul>
<% if (projects.length) { %>
<% for (var i = 0, l = projects.length; i < l; ++i){ %>
<% var item = projects[i]; %>
<li>
<a target="_blank" href="<%= item.url %>"><%= item.name %></a>
</li>
<% } %>
<% } %>
</ul>
{
"projects": [{
"name": "gotpl",
"url": "https://github.com/Lanfei/gotpl"
}, {
"name": "playable.js",
"url": "https://github.com/Lanfei/playable.js"
}, {
"name": "webpack-isomorphic",
"url": "https://github.com/Lanfei/webpack-isomorphic"
}, {
"name": "websocket-lib",
"url": "https://github.com/Lanfei/websocket-lib"
}, {
"name": "node-cd-cluster",
"url": "https://github.com/Lanfei/node-cd-cluster"
}]
}