As far as I have read it seems like Jinja is only for creating HTML files. Can it be used for creating python files as well?
Yes. It is not specific to HTML, you can generate any type of file.
For more information, see http://jinja.pocoo.org/docs/2.10/templates/
A Jinja template is simply a text file. Jinja can generate any text-based format (HTML, XML, CSV, LaTeX, etc.). A Jinja template doesn’t need to have a specific extension: .html, .xml, or any other extension is just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With