No description, website, or topics provided.
JavaScript Smarty
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test/relative
.gitignore
README.md
index.js
package.json
runtime.js

README.md

tmodjs-loader

简洁的art-template loader

使用方式

{
  ...
  module: {
    loaders: [
      {
          test: /\.tpl$/,
          loader: "tmodjs"
      }
    ]
  }
}

添加helper

var art = require('tmodjs-loader/runtime');

art.helper('xxx', function() {
    //xxx
})