You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Phillip Grenier <pg...@ststravel.com> on 2007/04/02 15:38:08 UTC

page includes, Tap 5

Can you do something similar to php like
 
<html>
<?php
include $_SERVER['DOCUMENT_ROOT']."/header.php";
include $_SERVER['DOCUMENT_ROOT']."/body.php";
include $_SERVER['DOCUMENT_ROOT']."/footer.php";
?>
</html>
 
I have found no way of including blocks of code in tapestry, Im learning
in Tapestry 5. Is this do-able?
 
Thanks

RE: page includes, Tap 5

Posted by Jonathan Barker <jo...@gmail.com>.
I would recommend that you start your learning with something like Kent
Tong's Enjoying Web Development with Tapestry using T4.  I'm looking forward
to T5, but I wouldn't recommend it for those just getting started.

www.agileskills2.org/EWDT/

You first need to adjust your mindset to the Tapestry way of thinking.  You
don't include blocks of code, you include components. What you are talking
about maps most closely to a Border component, although another interesting
approach is found on the Wiki under
http://wiki.apache.org/tapestry/WysiwygWithoutBorder?highlight=%28Border%29

Anyway, go with the EWDT tutorial.  The first four chapters are free and
will give you a really good taste.  I paid for the full thing more than a
year ago for the 4.0.x and it was a great help.



> -----Original Message-----
> From: Phillip Grenier [mailto:pgrenier@ststravel.com]
> Sent: Monday, April 02, 2007 9:38 AM
> To: users@tapestry.apache.org
> Subject: page includes, Tap 5
> 
> Can you do something similar to php like
> 
> <html>
> <?php
> include $_SERVER['DOCUMENT_ROOT']."/header.php";
> include $_SERVER['DOCUMENT_ROOT']."/body.php";
> include $_SERVER['DOCUMENT_ROOT']."/footer.php";
> ?>
> </html>
> 
> I have found no way of including blocks of code in tapestry, Im learning
> in Tapestry 5. Is this do-able?
> 
> Thanks


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


Re: page includes, Tap 5

Posted by Massimo Lusetti <ml...@gmail.com>.
On 4/2/07, Phillip Grenier <pg...@ststravel.com> wrote:

> I have found no way of including blocks of code in tapestry, Im learning
> in Tapestry 5. Is this do-able?

You can, that are components in Tapestry nomenclature.

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

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