1 var template = require('lodash.template');
2 var reEscape = require('lodash._reescape');
3 var reEvaluate = require('lodash._reevaluate');
4 var reInterpolate = require('lodash._reinterpolate');
9 interpolate: reInterpolate
12 module.exports = function(tmpl, data) {
13 var fn = template(tmpl, forcedSettings);
15 var wrapped = function(o) {
16 if (typeof o === 'undefined' || typeof o.file === 'undefined') {
17 throw new Error('Failed to provide the current file as "file" to the template');
22 return (data ? wrapped(data) : wrapped);