Comparing version 0.0.2 to 0.0.3
12
index.js
@@ -24,3 +24,3 @@ /** | ||
odesza.render = (template, vars) => { | ||
odesza.render = function(template, vars) { | ||
try { | ||
@@ -31,3 +31,3 @@ return vm.runInNewContext('`' + template + '`', vars); | ||
} | ||
}; | ||
} | ||
@@ -40,3 +40,3 @@ /** | ||
odesza.compile = (path, options) => { | ||
odesza.compile = function(path, options) { | ||
try { | ||
@@ -48,3 +48,3 @@ var template = fs.readFileSync(path).toString(); | ||
return this.render(template, options); | ||
}; | ||
} | ||
@@ -59,4 +59,4 @@ /** | ||
odesza.__express = (path, options, fn) => { | ||
odesza.__express = function(path, options, fn) { | ||
return fn(this.compile(path, options)); | ||
}; | ||
} |
{ | ||
"name": "odesza", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"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
1549
4
53