http://www.perlmonks.org?node_id=993046


in reply to Embeding Perl in HTML the PHP way

#!/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