ei-loader
et-improve loader for webpack
Last updated 3 years ago by chemzqm .
MIT · Original npm · Tarball · package.json
$ cnpm install ei-loader 
SYNC missed versions from official npm registry.

ei-loader

ei-loader for webpack using et-improve.

All it's done is covert template string to compiled javascript function.

Usage

In your webpack.config.js, add:

module: {
  loaders: [{
    ...
    {test: /\.et/, loader: 'ei-loader'},
  ]
},

In your javascript file

import domify from 'domify'
import filters from 'component/filters'
import User from './user.et'

loadUser(function(user) {
  let el = domify(User(user, filters))
  document.body.appendChild(el)
})

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Current Tags

  • 0.2.1                                ...           latest (3 years ago)

4 Versions

  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 25
Last Day 0
Last Week 9
Last Month 50
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |