G
gabriele renzi
il Mon, 26 Jul 2004 03:48:30 +0900, Florian Weber
I think you're missing Raphael's point: he's not talking about
<condition name='foo'>
<b>ok</b>
</condition>
vs
%if foo
<b>ok</b>
%end
He's saying that he does not want to have 'foo' referencing something
real (i.e. the parameters passed to the page) cause that adds coupling
beetween the view logic and the business logic.
He just prefers to have that level of indirection where he can have
'foo' as a placeholder for, say, a 'show=true' passed to the page or a
Time.now==XMas_day or a sql query result.
You don't like that level of indirection and it's ok (I think I
agree), but it's not really a question of presentation logic in
template languages or in real programming languages.
why shouldnt we have a real programming language in the template?
what if the presentation logic in our template is very very complicated?
just moving the complicated presentation logic out of the template into
another part like a binding or a ruby class doesnt change anything. its
just a form of indirection..
I think you're missing Raphael's point: he's not talking about
<condition name='foo'>
<b>ok</b>
</condition>
vs
%if foo
<b>ok</b>
%end
He's saying that he does not want to have 'foo' referencing something
real (i.e. the parameters passed to the page) cause that adds coupling
beetween the view logic and the business logic.
He just prefers to have that level of indirection where he can have
'foo' as a placeholder for, say, a 'show=true' passed to the page or a
Time.now==XMas_day or a sql query result.
You don't like that level of indirection and it's ok (I think I
agree), but it's not really a question of presentation logic in
template languages or in real programming languages.