Skip to content
Myr

Merge pull request #624 from soulseekah/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

missing ' in templating example

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 4515b83, 3c54f30 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/templating.rst+1 added-1 removed
209 unmodified lines
210211 @app.context_processor212 def utility_processor():213 def format_price(amount, currency=u'€'):214 return u'{0:.2f}{1}.format(amount, currency)214 return u'{0:.2f}{1}'.format(amount, currency)215 return dict(format_price=format_price)216217The context processor above makes the `format_price` function available to all218templates::
6 unmodified lines