Say you want to create a function that returns the value of an environment variable:
To use it in the templates, register it on the pongo2.Context:
Last step, is to pass that context when you render the view.
Developer from somewhere
Say you want to create a function that returns the value of an environment variable:
To use it in the templates, register it on the pongo2.Context:
Last step, is to pass that context when you render the view.