0.0.1 • Published 9 years ago
browserify-xtpl v0.0.1
#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!
0.0.1
9 years ago