Skip to content

Commit

Permalink
Merge pull request #624 from soulseekah/patch-1
Browse files Browse the repository at this point in the history
missing ' in templating example
  • Loading branch information
Kenneth Reitz committed Nov 16, 2012
2 parents 4515b83 + 3c54f30 commit 2fabc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ functions)::
@app.context_processor
def utility_processor():
def format_price(amount, currency=u'€'):
return u'{0:.2f}{1}.format(amount, currency)
return u'{0:.2f}{1}'.format(amount, currency)
return dict(format_price=format_price)

The context processor above makes the `format_price` function available to all
Expand Down

0 comments on commit 2fabc65

Please sign in to comment.