That’s it. You can now place Jinja2 templates (with the .jinja extension)
into any template directory used within your project.

Jinja2 Environment

megrok.jinja creates an Environment using jinja2.ext.i18n extension and overrides
the globals variables _ and gettext in order to use custom functions to resolve
translations. It also set the global variable provider as a function to resolve
the call to a content provider (viewlet manager).

For more information about Jinja2 Environment and Global variables visit:

About .json extension and PyYAML

megrok.jinja allows you to write templates with .json extension and
inside it, you are able to mix the Jinja2 syntax with PyYAML.

First, megrok.jinja will try to parse the template using Jinja2
and the result it’s passed to the PyYAML loader. If PyYAML it’s
able to load the string passed, the result it’s returned with simplejson.dumps