This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Capture templated parameter values passed to a dust.js helper function. | |
function captureParams(chunk, context, params, cb) { | |
// Object for recording resolved parameter values. | |
var values = {}; | |
// Capture a single parameter value. | |
// @param {name} The parameter name. | |
// @param {next} Next step in the capture chain. | |
function capture( name, next ) { | |
return function( chunk ) { | |
// If the parameter value is a function then it is a dust.js template that needs to be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Capture templated parameter values passed to a dust.js helper function. | |
function captureParams(chunk, context, params, cb) { | |
// Object for recording resolved parameter values. | |
var values = {}; | |
// Capture a single parameter value. | |
// @param {name} The parameter name. | |
// @param {next} Next step in the capture chain. | |
function capture( name, next ) { | |
return function( chunk ) { | |
// If the parameter value is a function then it is a dust.js template that needs to be |