Comparing version 0.0.3 to 0.0.4
16
index.js
@@ -30,5 +30,7 @@ /** | ||
} | ||
} | ||
}; | ||
/** | ||
* Compiles a template file. | ||
* | ||
* @param {string} path The path to the template file. | ||
@@ -45,4 +47,4 @@ * @param {object} options Options passed in to render the template. | ||
} | ||
return this.render(template, options); | ||
} | ||
return odesza.render(template, options); | ||
}; | ||
@@ -58,3 +60,7 @@ /** | ||
odesza.__express = function(path, options, fn) { | ||
return fn(this.compile(path, options)); | ||
} | ||
try { | ||
return fn(null, odesza.compile(path, options)); | ||
} catch (e) { | ||
return fn(e); | ||
} | ||
}; |
{ | ||
"name": "odesza", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Flexible templates powered by ES6 template strings.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1642
59