librelist archives

« back to archive

Jinja2 Custom Filter

Jinja2 Custom Filter

From:
Gary Chambers
Date:
2014-05-14 @ 02:02
All,

Is there any reason to avoid it, or is there a better/existing method to
implement a Jinja2 split filter?

app.jinja_env.filters['split'] = str.split

Thanks.

--
G.