[ckan-dev] ITemplateHelpers

Toby Dacre toby.okfn at gmail.com
Tue Apr 17 13:18:18 UTC 2012


I'd like to add a new ITemplateHelpers plugin interface to allow plugins to
register new template helper functions.

I think this would be helpful in reducing the need to have python code in
templates which is good for both readability and customisation of
templates.  It would work in a similar way to the IActions interface. The
functions would be available via h in templates but not via lib/helpers.py

Does this seem a reasonable thing to be doing?

Toby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120417/b983f090/attachment.html>


More information about the ckan-dev mailing list