On Nov 17,  6:01pm, Mark Fowler wrote:
> 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.

That's a standard mod_perl thing, it's not particularly unique to
php.

> How about doing something like this with perl/TT?

Yep,

    <Files *.tt2>
       SetHandler  perl-script
       PerlHandler Apache::Template
    </Files>

> 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.

That's something that would be controlled by the Apache httpd.conf, rather
than any particular handler, as such, but yep, that's the idea.

> #!/usr/bin/perl
> use TemplateThis
> __DATA__
>
> <html>
>  [% somettdirective %]
> </html>

You can already do this with tpage:

#!/usr/local/bin/tpage
<html>
[% somettdirective %]
</html>


A



-- 
Andy Wardley <[EMAIL PROTECTED]>   Signature regenerating.  Please remain seated.
     <[EMAIL PROTECTED]>   For a good time: http://www.kfs.org/~abw/

Reply via email to