3 ms·
Django's template system is the sexiest I've seen (mostly because of the simple syntax and inheritance). I've been meaning to check out web.py for a while now,
by pssdbt 17y ago
Django's template system is the sexiest I've seen (mostly because of the simple syntax and inheritance). I've been meaning to check out web.py for a while now, will have to see how web.py templating compares.
- anatoly 17y agoSorry; when I see those {% %} {{ }} I feel nauseated. Also, it's bizarre to use a language (Python) that uses indentation instead of endif's, closing braces, etc., and then turn around and require endif's and endfor's in your templating system. web.py's templates get that right: just use the Python style.
- jacquesm 17y agoNot only endifs and endfors but also tons of braces...
- benatkin 17y agoOh yeah...endif, endfor, endblock. Oddly, there's no elif tag, though.
- benatkin 17y agoEspecially when they run together, like this: {% block title %}{{ section.title }}{% endblock %}
- pssdbt 17y agoOdd... it's personal preference here then. In my opinion python's style shouldn't be mixed with HTML at all. Again, I still need to look further into web.py's templating, but the endifs/endfors mix with HTML much better than python's style to me.