@scvo/router
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -233,6 +233,7 @@ "use strict"; | ||
Helpers.helper_component = function (partialName, options) { | ||
options = options.hasOwnProperty('hash') ? options.hash : options; | ||
console.log('Arguments:', util.inspect(options, false, null)); | ||
var partial = Helpers.handlebars.partials[partialName]; | ||
var template = Helpers.handlebars.compile(partial); | ||
var html = template(options.hash); | ||
var html = template(options); | ||
return new Helpers.handlebars.SafeString(html); | ||
@@ -239,0 +240,0 @@ }; |
{ | ||
"name": "@scvo/router", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "A moderately oppinionated web application framework based around mapping routes to tasks and then rendering with handlebars", | ||
@@ -5,0 +5,0 @@ "main": "./build/index", |
@@ -256,6 +256,7 @@ import * as dot from 'dot-object'; | ||
static helper_component(partialName: string, options: any) { | ||
options = options.hasOwnProperty('hash') ? options.hash : options; | ||
console.log('Arguments:', util.inspect(options, false, null)); | ||
const partial = Helpers.handlebars.partials[partialName]; | ||
const template = Helpers.handlebars.compile(partial) | ||
const html = template(options.hash) | ||
const template = Helpers.handlebars.compile(partial); | ||
const html = template(options); | ||
return new Helpers.handlebars.SafeString(html) | ||
@@ -262,0 +263,0 @@ } |
Sorry, the diff of this file is not supported yet
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
333421
2969