browserify-xtpl
v0.0.1
Published
browserify transform for xtemplate
Downloads
1
Maintainers
Readme
#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!