Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makky3939 committed Jul 11, 2015
1 parent 385b059 commit 878c95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ var forcedSettings = {
interpolate: reInterpolate
};

module.exports = function(tmpl, data){
module.exports = function(tmpl, data) {
var fn = template(tmpl, forcedSettings);

var wrapped = function(o) {
if (typeof o === 'undefined' || typeof o.file === 'undefined'){
if (typeof o === 'undefined' || typeof o.file === 'undefined') {
throw new Error('Failed to provide the current file as "file" to the template');
}
return fn(o);
Expand Down

0 comments on commit 878c95b

Please sign in to comment.