jes 介绍
javascript模板引擎,可用于nodejs和web端。运行代码:
jes.renderFile('layout.jes',
{
title:'JES',
body:'Welcome to jes!',
copyright:'copyright 2012'
},
function(err, data){
if(err){
console.log(err);
}else{
console.log(data);
}
}
);
jes 官网
https://github.com/zhiyu/jes