Added jinja2 do extensions
This commit is contained in:
11
tools/render
11
tools/render
@@ -19,11 +19,18 @@ ROOT = pathlib.Path(REPO.working_dir)
|
|||||||
NODES = ROOT.joinpath("nodes")
|
NODES = ROOT.joinpath("nodes")
|
||||||
SCHEMATICS = ROOT.joinpath("schematics")
|
SCHEMATICS = ROOT.joinpath("schematics")
|
||||||
RENDERED = ROOT.joinpath("rendered")
|
RENDERED = ROOT.joinpath("rendered")
|
||||||
|
|
||||||
|
EXTENSIONS = ["jinja2.ext.do"]
|
||||||
|
|
||||||
PATCHES = Environment(
|
PATCHES = Environment(
|
||||||
loader=FileSystemLoader(ROOT.joinpath("patches")), undefined=StrictUndefined
|
loader=FileSystemLoader(ROOT.joinpath("patches")),
|
||||||
|
undefined=StrictUndefined,
|
||||||
|
extensions=EXTENSIONS,
|
||||||
)
|
)
|
||||||
TEMPLATES = Environment(
|
TEMPLATES = Environment(
|
||||||
loader=FileSystemLoader(ROOT.joinpath("templates")), undefined=StrictUndefined
|
loader=FileSystemLoader(ROOT.joinpath("templates")),
|
||||||
|
undefined=StrictUndefined,
|
||||||
|
extensions=EXTENSIONS,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user