mikeckennedy / markdown-subtemplate

A template engine to render Markdown with external template imports and basic variable replacements. #pypackage
MIT License
64 stars 7 forks source link

Allow defining a variable to be subsequently passed to import sections #7

Closed mikeckennedy closed 4 years ago

mikeckennedy commented 4 years ago

Here's what I have in mind. We have a landing page and want to specify which campaign this is about all the while reusing most of the content:

# The landing page title

Welcome people from this campaign

[VARIABLE name=value]

[IMPORT section1] # {name: value} is added to the variables passed here.
[IMPORT section2]
[IMPORT section3]
mikeckennedy commented 4 years ago

Published as version 0.2.22 to pypi.