Skip to content

zhangshaolong/simplite-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simplite loader

load simplite template and compile

install
npm install simplite-loader --save-dev
let tpl = import tpl from ('./path/xxx/index.tpl')
domNode.innerHTML = tpl(data)

if you use webpack, you can use it at webpack.config.js:

  module: {
    rules: [
      {
        test: /\.tpl$/,
        exclude: /node_modules/,
        use: {
          loader: 'simplite-loader'
        }
      }
    ]
  }

simplite template

a webpack+es6+simplite+simplite-loader demo

Releases

No releases published

Packages

No packages published