diff --git a/hotcooler/jinja_filters.py b/hotcooler/jinja_filters.py deleted file mode 100644 index bc4e774..0000000 --- a/hotcooler/jinja_filters.py +++ /dev/null @@ -1,18 +0,0 @@ - -from jinja2 import contextfilter -from pyramid.threadlocal import get_current_request -from pyramid.url import static_url - - -@contextfilter -def static_url_filter(ctx, path, **kw): - """A filter from ``path`` to a string representing the absolute URL. - This filter calls :py:func:`pyramid.url.static_url`. - - Example:: - - - - """ - request = ctx.get('request') or get_current_request() - return static_url(path, request, **kw)