Provide jinja2 urlencode filter
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 26 Nov 2012 20:24:35 +0000 (21:24 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 3 Dec 2012 13:11:22 +0000 (14:11 +0100)
commit620e4e1b6e1f58d76b2bedb1d38495662ccd5af3
treeca9df7eeaaf85edabb334789da291438b2d76881
parentfd7c348415cf950a3fbc11fd381c878cd3ac2ddf
Provide jinja2 urlencode filter

Astonishingly, the great jinja2 does not provide a builtin urlquote filter,
although it is obviously needed. (jina1 had one) This is:
https://github.com/mitsuhiko/jinja2/issues/17

Provide an urlencode filter, based on werkzeug's url_quote_plus function.
This is dead easy to implement and gives us all the freedom we want.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/tools/template.py