Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP-style tags for Perl web development?

I feel like I'm traveling 10 years back in time by asking this, but...

Are there any modules, patches, or any "new" version of Perl (released in the last 10 years) to enable writing web-oriented Perl scripts using ASP-style tags?

e.g. from ASP/JSP

 some html <% some code %> more HTML

e.g. from PHP

 some html <? some code ?> more HTML

Please don't worry about "why" I'm asking this... It's related to programming language research.

like image 821
Alex R Avatar asked Dec 05 '22 03:12

Alex R


1 Answers

Yep. Check out Mason.

You can install it from CPAN with cpan -i HTML::Mason.

There's also Template Toolkit, which makes it a bit easier to separate your template and logic code, but allows a lot of the same constructs.

like image 85
friedo Avatar answered Dec 28 '22 06:12

friedo