pauleveritt / fdom

Template engine based on tag strings and functional ideas.
0 stars 0 forks source link

Finalizing HTML compiler #10

Open jimbaker opened 12 months ago

jimbaker commented 12 months ago

Next steps for MVP:

jimbaker commented 11 months ago

Further steps:

jimbaker commented 11 months ago

I was looking in Jinja's code for some good example Jinja templates from a performance perspective, but I didn't see any there. (Instead templates were focused on tests, which seem to be of limited applicability given that we assume more of the overall Python environment - imports, functions, etc just exist, and are extensively tested in Python itself.)

However, it was interesting to see some similarities in the code generation here - https://github.com/pallets/jinja/blob/main/src/jinja2/compiler.py#L300 including specifically the use of yield.