missing ' in example

Results in SyntaxError: EOL while scanning string literal
This commit is contained in:
soulseekah 2012-11-03 18:06:23 +06:00
parent 2b885ce4dc
commit 3c54f30c2b

View file

@ -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