Example for adding to Environment.globals #20

brutka opened this Issue Apr 6, 2011 · 1 comment


None yet
2 participants

brutka commented Apr 6, 2011

can we have a complete example how to add variables and functions to jinja's Environment.globals?


rockyburt commented Apr 6, 2011

Using Jinja2's Evnronment.globals with pyramid_jinja2 is no different than using them with stock Jinja2. Please see the Jinja2 docs for details.

@rockyburt rockyburt closed this Apr 6, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment