It seems that everyone has a need to invent their own templating system in Perl. The clever ones quickly realise that they are wasting their time and that there are already a huge number of templating systems to choose from and there is rarely a good reason to add to that number.

If you like Perl in your HTML, then why not look at Mason, Embperl or even Text::Template. Personally I prefer keeping Perl out of my HTML and, instead, using the simplified markup language of the Template Toolkit.

I know it seems like a big leap to switch from your home-grown solution to a new one, but it's really worth making the change. You'll get a far more powerful system that is being used (and therefore tested) by hundreds or thousands of other people. It also means that there is a huge community of potential new employees who already know a lot about your templating system.

I know you asked people not to suggest that you use something else but, to be honest, I really think that's the best advice in this case.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg


In reply to Re: Extending the Perl Syntax on PERL + HTML envirionments. by davorg
in thread Extending the Perl Syntax on PERL + HTML envirionments. by gmpassos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.