[ckan-dev] template variables
David Read
david.read at hackneyworkshop.com
Thu Jul 26 09:48:57 UTC 2012
I've noticed people passing variables to CKAN templates using the
'extra_vars', whereas we always used to use the context (e.g. c.pkg).
The extra_vars seems more functional and suits the render_snippet
functionality, but is there any other reason for the change?
The reason I ask is that if you use extra_vars then caching is
switched off for that page (lib/base.py). Hence all the dataset pages
don't cache because the social plugin does render_snippet. I'm
obviously missing something in this design - can someone explain?
Dave
More information about the ckan-dev
mailing list