> > > The ridiculousness of a templating engine which barfs on a
> > > commonly used character is a matter for another time.
> >
> > A very colourful sentence Matt, thank god for Aussies :) What was
> > the character?
>
> {
>
> Yep, any template with an inline stylesheet kills the "smart"y
> template engine.
>
> I thought smarty sucked before. Hitting this just drove it home to
> me. PHP itself is a quite reasonable templating engine. I vote to
> throw smarty out as the weird, inflexible PoS it is, and just use PHP
> direct in the templates.
I fully object to that.
it's not very convenient, but you can escape { and }
with {ldelim} and {rdelim} iirc
and moreover you can use
{litteral}
....
{/literal}
to define non parsed blocks.
php is clearly a good templating language, but is definetely too rich,
and leads to unmaintainable pages. moreover, it has access to the FS,
the database, god know what else. and tpl are great to allow user to
have some kind of turing-completeness without nasty access to your
system.
btw, inline css is almost allways nasty, and you should prefer a
separate .css file, and a <link rel=...> to it ;)
--
�O� Pierre Habouzit
��O
OOO http://www.madism.org
pgpuW6ae48xJ1.pgp
Description: PGP signature

