How do web templates separate content and logic?

Mike termim at gmail.com
Mon Jun 30 19:19:07 CEST 2008


On Jun 30, 10:57 am, Bruno Desthuilliers <bruno.
42.desthuilli... at websiteburo.invalid> wrote:
>
> Some (if not most) templating systems use their own mini-language to
> handle presentation logic.
>

IMHO this is the funniest (worst) part of all this 'templating'
buss  :)
It reminds me the good old slogan: "Have you invented your own GUI
library yet?"

>
> The meme "thou shall not mix domain logic with presentation" is very
> often misunderstood as "you must not have anything else than html in
> templates", which is just plain non-sense. Even declarative templating
> systems (cf Has's post) require some special (ie: non standard) stuff to
> work.
>
> > Or could it just be that
> > this is a *good* way to mix HTML and Python, and there are other ways
> > which may be bad?
>
> Bingo.
>

Then what is so *good* about it, why embedding HTML into Python is not
good?

Mikhail

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++
Q: What one would get after crossing a snake and a hedgehog?
A: A barbed wire metre.



More information about the Python-list mailing list