i totaly agree with Thiago,
implement logic into design should an absolutly no-go


with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org





2010/9/14 Thiago H. de Paula Figueiredo <[email protected]>:
> On Tue, 14 Sep 2010 05:38:07 -0300, Gunnar Eketrapp
> <[email protected]> wrote:
>
>> Hi John! (Still alive ?)
>
> Hi, guys!
>
>> I was also frustrated about the simplicity of the template language at the
>> start.
>
> Me too. But then I discovered that templates should have the least logic on
> them, so it's way easier to test and to get the code right. If someone
> really wants to put logic in template, use the OGNL binding from
> ChenilleKit, but please, don't do that.
>
>> You can't (or couldn't even) negate a test!
>
> You can negate a test with !: <span t:test="!loggedIn"> .... public boolean
> isLoggedIn() {...}
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to