#!/usr/bin/env perl use Template; my $tt = Template->new({ EVAL_PERL => 1 }); $tt->process(\*DATA) or die $tt->error(), $/; __DATA__ [% PERL %] print "OHAI DER!"; [% END %]
The Template code is no simpler than the Mojolicious example but still good to know about. Mason will do the same thing in a slightly different way as well.
Update: nagged into adding links. I HAZ A LAZY. :P
In reply to Re: Embeding Perl in HTML the PHP way
by Your Mother
in thread Embeding Perl in HTML the PHP way
by heatblazer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |