browserify-xtpl
A browserify transform for xtpl xtemplates! Yay!
Installation:
npm install browserify-xtpl
Usage:
Make a jst template like so:
html
<!DOCTYPE html>
<html>
<head>
<title>{{name}}</title>
</head>
<body>
<p>Hello there, {{name}}</p>
</body>
</html>
var tpml = require('index.xtpl').render({name: 'test'})
注意使用前需要安装xtemplates
That's all!