Remove unnecessary global template function
This commit is contained in:
parent
6746e63a2c
commit
125f482475
@ -77,10 +77,6 @@ def dateFromString(value, formatter="%m/%Y"):
|
|||||||
return datetime.datetime.strptime(value, formatter)
|
return datetime.datetime.strptime(value, formatter)
|
||||||
|
|
||||||
|
|
||||||
def string(value):
|
|
||||||
return app.jinja_env.filters["string"](value)
|
|
||||||
|
|
||||||
|
|
||||||
def register_filters(app):
|
def register_filters(app):
|
||||||
app.jinja_env.filters["iconSvg"] = iconSvg
|
app.jinja_env.filters["iconSvg"] = iconSvg
|
||||||
app.jinja_env.filters["dollars"] = dollars
|
app.jinja_env.filters["dollars"] = dollars
|
||||||
@ -92,4 +88,3 @@ def register_filters(app):
|
|||||||
app.jinja_env.filters["renderList"] = renderList
|
app.jinja_env.filters["renderList"] = renderList
|
||||||
app.jinja_env.filters["formattedDate"] = formattedDate
|
app.jinja_env.filters["formattedDate"] = formattedDate
|
||||||
app.jinja_env.filters["dateFromString"] = dateFromString
|
app.jinja_env.filters["dateFromString"] = dateFromString
|
||||||
app.jinja_env.globals.update(string=string)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user