What other things should be in the template_context? #93

Open
EnigmaCurry opened this Issue Apr 19, 2011 · 0 comments

Comments

Projects
None yet
1 participant
Owner

EnigmaCurry commented Apr 19, 2011

Right now we have bf.template_context which is a place to store temporary state information for the currently rendering template. So far it only has bf.template_context.template_name which is the name of the template file being rendered (useful for templates that are further up in the inheritance chain to know).

Probably it would be useful to have other things there as well:

  • URL path of the where the html will end up.
  • Reference to the controller / plugin that called it.
  • .... ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment