forked from orbit-oss/flask
Merge pull request #624 from soulseekah/patch-1
missing ' in templating example
This commit is contained in:
commit
2fabc65505
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue