0.1.4 • Published 7 years ago

jqtempl-loader v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

JQuery-Template Webpack loader

Install with npm:

npm install --save-dev jqtempl-loader 

Webpack config

module.exports = {
   ...
    module: {
        loaders: [
            { test: /\.html/, loader:  'jqtempl-loader'}
        ]
    },
   ...
};

That make jquery template file with the name *.html. You can make other name for template files and change the test pattern

In Code

    
	var buttonTmpl = require('./tpl/tplButton.html');
	//invoke
	buttonTmpl($, {
    	'data': data
	});
	
0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago