tpl-loader/index.js
Dmitriy Kubyshkin 55196028f5 Initial commit.
2014-12-15 15:48:11 +01:00

8 lines
188 B
JavaScript

var _ = require('underscore');
module.exports = function (source) {
this.cacheable && this.cacheable();
var template = _.template(source);
return 'module.exports = ' + template;
};