Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Commit

Permalink
Pass render options to formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg committed Jan 18, 2013
1 parent 0173758 commit b180899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/render_template.js
Expand Up @@ -189,7 +189,7 @@ function bindElement(templateElement, destination, options){
var attributes = templateElement[1]
var value = options.datasource.get(attributes._bind, options.context, {parent: options.parent})
if (attributes._format && options.formatters[attributes._format]){ // use a formatter if specified
var res = options.formatters[attributes._format](value)
var res = options.formatters[attributes._format](value, options)
if (res){
assignTx(res)
res.forEach(function(element){
Expand Down

0 comments on commit b180899

Please sign in to comment.