> A future release of TT will come with a sample templates directory and
> ttree configuration files.
>
> So, if you want to create a slideshow from XML source, for example,
> you would type something like:
>
> ttree -f slideshow -s /my/xml/is/here -d /send/output/here
>
> If you want to create a web site with nice navigation bars, etc., then
> you type:
>
> ttree -f website -s /my/templates/are/here -d /send/output/here
>
> And so on.
One of the great advantages in using php is that you can just rename your
html files .php3 and everything still works. Now when you add some
scripting, it all magically works.
Almost zero learning curve.
How about doing something like this with perl/TT? I know that this kind
of thing is really simple to implement yourself, but having some kind of
defined standard would go a long way to introducing the novice.
For example, having a handler that made all files that ended in .htmltt or
suchlike automatically parsed by the template toolkit before displaying
would be wonderful.
Then all we would need to is get this installed by default (or via a very
easy script that sysadmins can handle without too much thought) and we're
away.
Oh - and how about doing something that makes this work:
#!/usr/bin/perl
use TemplateThis
__DATA__
<html>
[% somettdirective %]
</html>
for CGI files.
A kind of dummys guide (which I know you said that you didn't want to have
to write andy, but you get the idea)
Later.
Mark.
--
print "\n",map{my$a="\n"if(length$_>6);' 'x(36-length($_)/2)."$_\n$a"} (
Name => 'Mark Fowler', Title => 'Technology Developer' ,
Firm => 'Profero Ltd', Web => 'http://www.profero.com/' ,
Email => '[EMAIL PROTECTED]', Phone => '+44 (0) 20 7700 9960' )