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 <[EMAIL PROTECTED]> wrote:
On 3/28/07, Jan Vissers <[EMAIL PROTECTED]> wrote:

> Is this still a major concept in T5?

I think so.

--
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to