score.jinja2

A small module that registers a score.tpl.Renderer for jinja2 file types with score.tpl.

Quickstart

Usually, it is sufficient to add this module to your initialization list:

[score.init]
modules =
    score.tpl
    score.jinja2

API

score.jinja2.init(confdict, tpl)[source]

Initializes this module acoording to the SCORE module initialization guidelines with the following configuration keys:

cachedir None
A cache folder to use for storing parsed templates. Highly recommended.
class score.jinja2.ConfiguredJinja2Module[source]

This module’s configuration object.

class score.jinja2.Jinja2Renderer[source]

A score.tpl.Renderer capable of rendering jinja2 templates.