express-secure-handlebars
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "express-secure-handlebars", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"licenses": [ | ||
@@ -35,3 +35,3 @@ { | ||
"dependencies": { | ||
"context-parser-handlebars": "^1.0.5", | ||
"context-parser-handlebars": "^2.0.0", | ||
"express-handlebars": "^2.0.0", | ||
@@ -38,0 +38,0 @@ "handlebars": "^3.0.0", |
@@ -59,4 +59,6 @@ Express with Secure Handlebars | ||
var app = express(); | ||
app.engine('handlebars', exphbs({defaultLayout: 'main'})); | ||
var app = express(), | ||
hbs = exphbs.create({ /* config */ }); | ||
app.engine('handlebars', hbs.engine); | ||
app.set('view engine', 'handlebars'); | ||
@@ -63,0 +65,0 @@ |
@@ -18,4 +18,3 @@ /* | ||
var parser = new ContextParserHandlebars({printCharEnable: false}); | ||
parser.contextualize(template); | ||
return parser.getOutput(); | ||
return parser.analyzeContext(template); | ||
} | ||
@@ -22,0 +21,0 @@ } catch (err) { |
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
89
20553
334
+ Addedcontext-parser-handlebars@2.0.1(transitive)
- Removedcontext-parser-handlebars@1.1.0(transitive)