3.0.0 • Published 4 years ago

can-stache-loader v3.0.0

Weekly downloads
47
License
MIT
Repository
github
Last release
4 years ago

version dependencies dev dependencies

CanJS Stache template loader for webpack

Compiles CanJS Stache templates with can-view-parser and allows to load them with webpack

How to install

NPM and Yarn

You can install the library using NPM:

npm install can-stache-loader --save-dev

or by Yarn:

yarn add can-stache-loader

How to use it

Configure webpack 2+

webpack.config.js

{
  module: {
    rules: [
      {
        test: /\.stache$/,
        use: {
          loader: 'can-stache-loader'
        }
      }
    ]
  }
}

Import stache templates in your CanJS project

import tpl from './template.stache';

const html = tpl({
 foo: 'bar'
});

CanJS Compatibility

This library works fine with CanJS version 4.0.0+ and webpack 2.0.0+.

License

MIT

3.0.0

4 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago

1.0.0-beta

7 years ago

0.2.1

7 years ago

1.0.0-pre

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago