You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tpl-loader/index.js

8 lines
250 B

var _ = require('lodash');
10 years ago
module.exports = function (source) {
this.cacheable && this.cacheable();
var template = _.template(source, null, this.options.tplSettings);
return 'var _ = require(\'underscore\');\nmodule.exports = ' + template;
10 years ago
};