That's usually discouraged because it breaks the "separation of
concerns" for application logic and presentation. But if you want to
persue it, you would enable the EVAL_PERL option.

See: http://template-toolkit.org/docs/manual/Config.html#section_EVAL_PERL

On Wed, 9 Sep 2009 [email protected] wrote:

> Hello,
> 
>       I'm looking into learning Perl over PHP, but the one thing I really  
> like about PHP is that you can embed code directly in the web page.
> 
>       I was wondering if TT allows you to do the same thing, or something  
> similar, or if you still have to go through the cgi-bin directory to  
> make it work.
> 
>       I may not be explaining myself correctly, since I really don't know  
> Perl, but what I'm looking for is a way to embed Perl code, or  
> placeholders, directly in my static web pages.  The perl cart we're  
> using now does not allow us to "paste" it's functionality in the other  
> pages since they're outside the cgi directory.
> 
>       On a side note, does anyone know if Perl 6 is planning to include a  
> templating system of some sort, or if it will make it easier to embed  
> functionality directly into web pages?  Just curious.
> 
> Thanks!
> Frank
> 
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
> 

-- 
Andrew B. Sweger -- The great thing about multitasking is that several
                                things can go wrong at once.


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to