You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2007/04/05 20:59:30 UTC

Re: T5 - HTML Templating

Tapestry 5 (as of 5.0.3) supports two forms of templating:

<span t:id="foo" t:type="bar" ...>
</span>


and

<t:bar t:id="foo"> ...
</t:bar>

The former version is more cluttered, but more Web designer friendly.

The latter version reads "nicer" for coders who don't care about Web
designer friendly.

You are, of course, free to mix and match. This is one of the few
areas in Tapestry where I think it is important to leave choice to the
user. Like curly braces in Java code, some people are emphatically in
one camp, or in the other. So be it.

A component can "know" the tag used to represent it in the template;
some components (such as If and Loop) automatically adapt ...
mimicking the tag and rendering informal parameters.

Note that 5.0.2 had a different variant, <t:comp>, which has been
removed in favor of form #2.

On 3/28/07, Massimo Lusetti <ml...@gmail.com> wrote:
> On 3/28/07, Jan Vissers <Ja...@cumquat.nl> wrote:
>
> > Is this still a major concept in T5?
>
> I think so.
>
> --
> Massimo
> http://meridio.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 - HTML Templating

Posted by Jan Vissers <Ja...@cumquat.nl>.
Thanks a lot for this answer.



> Tapestry 5 (as of 5.0.3) supports two forms of templating:
>
> <span t:id="foo" t:type="bar" ...>
> </span>
>
>
> and
>
> <t:bar t:id="foo"> ...
> </t:bar>
>
> The former version is more cluttered, but more Web designer friendly.
>
> The latter version reads "nicer" for coders who don't care about Web
> designer friendly.
>
> You are, of course, free to mix and match. This is one of the few
> areas in Tapestry where I think it is important to leave choice to the
> user. Like curly braces in Java code, some people are emphatically in
> one camp, or in the other. So be it.
>
> A component can "know" the tag used to represent it in the template;
> some components (such as If and Loop) automatically adapt ...
> mimicking the tag and rendering informal parameters.
>
> Note that 5.0.2 had a different variant, <t:comp>, which has been
> removed in favor of form #2.
>
> On 3/28/07, Massimo Lusetti <ml...@gmail.com> wrote:
>> On 3/28/07, Jan Vissers <Ja...@cumquat.nl> wrote:
>>
>> > Is this still a major concept in T5?
>>
>> I think so.
>>
>> --
>> Massimo
>> http://meridio.blogspot.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org