4 ms·
Werkzeug's Jinja2 templating engine written in Python. I happened to dig into its source code for something and eventually found myself amazed at how the entir
by lewisjoe 11y ago
Werkzeug's Jinja2 templating engine written in Python.
I happened to dig into its source code for something and eventually found myself amazed at how the entire base is beautifully laid out. It's no nowhere near being naive. It's almost a simple programming language implemented in python. A compiler of sorts with its own abstract syntax tree and stuff. Yet the code is very readable, straight forward and just taught me how to write good python.
[edit] corrected typo.
- plaes 11y agoYou mean Jinja2? Also, Jinja2 and Werkzeug aren't coupled - you can use practically any Python templating lib with it as Werkzeug is just a WSGI library (+ and of course something else..). And they happen to share the author.
- lewisjoe 11y agoYeah, my bad. Updated the details. Thanks. 'Mitsuhiko' is a hard name to remember.