Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Jinja compiles to Python which is then compiled to CPython bytecode and executed by the CPython VM.


I see - here the compile time data structure is converted into a tree at runtime and rendered.

I decided to use a runtime DS to allow things like splicing and looping templates etc.

It's also possible to make the runtime render the compiled time DS directly, which should be even faster if your requirements are simple enough




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: