Scripts

Template Expand

Assembles a template file by replacing include directives with the contents of referenced files.

What it does

How to run it

python tpl_expand.py <template-file>

Inputs

Outputs

Example

Given a template file:

# Documentation

[[include:partials/introduction.md]]

[[include:partials/usage.md]]

Run:

python tpl_expand.py _template.md

Result: