On Mon, 22 Mar 2010 23:29:00 -0300, Alfonso Quiroga <alfonsose...@gmail.com> wrote:

But what happens if I want really dynamic layout-tml? I mean, if a page uses layout "peter", it should search a peter.tml, and if a page uses layout
"pretty", pretty.tml.

You can use blocks and the ComponentSource component for that, but I suggest you to rethink what you want.

Is this possible? It would be a great feature for a lot of sites

It is possible to load templates from other places, but you need to override or decorate some Tapestry services.

(every user could change the site layout when he logs in).

You can use CSS for that. See csszengarden.com for examples of radically different layouts using the same HTML and different CSS and image files. Tapestry templates are meant to be used by developers, not users. If I needed to provide some templating for users, I would use some template engine like Velocity of Freemarker (preferred).

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to