browserify-xtpl

0.0.1 • Public • Published

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!

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i browserify-xtpl

    Weekly Downloads

    0

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • zhoujianlin