[Seaside] Templates?

Colin Putney cputney at wiresong.ca
Fri Sep 12 13:23:03 CEST 2003


Julian Fitzell wrote about pretty printing:

> It's not Seaside's fault... the problem is that you can't arbitrarily 
> put carriage returns or tabs inside fields because it renders as a 
> space in HTML that might not have been there otherwise.
>
> Foo<span>bar</span>baz
>
> renders differently from:
>
> Foo
>  <span>bar</span>
> baz
>
> for example.  I've been through a handful of iterations of 
> pretty-printing, and none of them ever ends up being semantics 
> preserving.  If someone can come up with a concrete plan and prove 
> that it is semantics-preserving in all cases, then I'm all for adding 
> it. Otherwise, it's just another complication when tracking down weird 
> display problems.

Agreed. This is one of the reasons I like templates. Because you get 
finer control of the output, and can format your html in a way that is 
readable *and* has the semantics you want.

Colin



More information about the Seaside mailing list