3 Consists of functions to typically be used within templates, but also
4 available to Controllers. This module is available to both as 'h'.
6 from routes import url_for, redirect_to
7 from webhelpers.html import escape, literal, url_escape
8 from webhelpers.html.tags import *
10 from webhelpers.pylonslib import Flash as _Flash
12 from decimal import Decimal
15 return '<span class="bluechips">BlueChips</span>'
17 def currency(name, value, *args, **kwargs):
18 if 'class_' not in kwargs:
20 kwargs['class_'] += 'currency'
21 value = "%0.2f" % (int(value) / 100.)
22 return text(name, value, *args, **kwargs)