gobble-jade-es6
v1.0.2
Published
Generate precompiled jade templates in ES6 module format
Downloads
2
Maintainers
Readme
Precompile jade templates into your bundle
Usage:
const gobble = require('gobble');
module.exports = gobble([
gobble('src/root'),
gobble([
gobble('src/js'),
gobble('src/jade').transform('jade-es6')
])
]);
And then in your ES6 file:
import myTemplate from './myTemplate.jade';
const markup = myTemplate({ attr: 'value' });