> Just started out with PageTemplate 0.3.2 with mod_ruby 0.9.9 and ruby
> 1.7.2 and have some questions regarding PT..
>
> Does PT support nested templates? i.e. templates within a template?
> I was expecting PT to have an "include" kind of directive??

Hi

No, the package doesn't have built-in support for 'include' type directives.
However, you can add this capability into the package by first creating a
custom glossary for your parser that will recognise 'include' tags. There's
a class called Syntax::Glossary in the package that shows how these work.
Then you'll need to create a subclass of the Syntax::Parser that reads in
file where it finds an 'include' tag. The 'compile' method of the parser
handles the meaning of each individual type of tag, and you'll want to alter
it so that it can read in extra template files when it finds an 'include'.
Finally, you'll need to create a subclass of PageTemplate that uses the
altered Syntax::Parser.

The code I've got for this at the moment is slightly fiddly and longwinded,
but I've sent it over off-list in just in case it gives you a few ideas.

best
alex

__
alex fenton
http://www.pressure.to/cccp/ --still anxious--