[plug] Jinja/LaTeX child templates
Chris Caston
chris at caston.id.au
Mon Jan 27 15:32:18 AWST 2020
Hello,
I have been trying to figure out how to use child templates (amongst other
things you will see in the attached python and LaTeX template code) in
Jinja when working with LaTeX. This has been tricky as most of the pages I
can find are specific to HTML.
I am trying to render the child template (test2.template) in
jinja-test.template where I have written:
\section{\VAR{section8}}
{% block content %}{% endblock %}
I have probably missed something very simple but looking at so much code
from so many
places is getting me confused.
Here is my code so far and the links to resources I am been trying to learn
from:
https://jinja.palletsprojects.com/en/2.10.x/templates/#base-template
https://realpython.com/primer-on-jinja-templating/
http://akuederle.com/Automatization-with-Latex-and-Python-2
http://eosrei.net/articles/2015/11/latex-templates-python-and-jinja2-generate-pdfs
Thank you in advance for your help.
best regards,
Chris Caston
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20200127/8215587e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testdb.py
Type: text/x-python
Size: 1315 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20200127/8215587e/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jinja-test.template
Type: application/octet-stream
Size: 1712 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20200127/8215587e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.template
Type: application/octet-stream
Size: 237 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20200127/8215587e/attachment-0001.obj>
More information about the plug
mailing list