pip install shrtcodes
Shortcodes for Python.
A toy example.
Define our shortcodes:
{% embed_file example.py syntax=py %}
{% execute_python example.py --help %}
Write some text:
{% embed_file example.txt %}
Process the text:
{% execute_python example.py example.txt %}
A more useful example would be the generation of this README itself.
See make_readme.py
and .README.template.md
.