Flexible templates

By farcaller July 7th, 2008

Continuing working with RoR. What looks very different from Django is high utilisation of html-generating methods. While this makes life of programmer simpler, it makes overall execution slower.
Some of such magic might go into FOW (pre-compiling templates and binding to SEL’s for faster execution). Anyways I find CTemplate somewhat restricted now. It’s not possible to make FOW templating as flexible as in RoR but it might be worth making it to Django templates level.
There might be three levels of template processors: FOW-level (handly stuff bundled into FOW), whole-application-level (usable in any of renderers) and renderer-level (convience functions for single logic block to make it follow DRY).
By the way, RoR is more DRY (Don’t repeat yourself) than Django is. I wonder how much DRY could I code into FOW. gcc -O3 can sort things out pretty nice anyways…

This entry was posted on Monday, July 7th, 2008 at 19:50 and is filed under Conceptual, Ideas. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply