tpl-loader/index.js
2017-03-16 14:11:52 +01:00

8 lines
250 B
JavaScript

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