Hello

I'm sure this is a common perl type task, but I'm not sure what to call the pattern so as to google for it...

I want to use perl to generate WML files from a template, using data from an outside source to fill in tokens in the template, eg: funmail.url.beta, zingy.name.prod... I'm in a situation where I'm maintaining 6 decks or sites in beta and production trim with various subsets of production and verification URLs in each. Right now, when I get a new URL or marketing want to shuffle things, I edit things by hand for beta, get approval for promotion after testing, edit in the production URLs by hand for gamma, test again and copy gamma to production

So that's the set up, what I'm asking is: is there a standard format or package for inserting things appropriate places into templates? I think I've seen something like ${funmail.url.beta}, but I thought I would seek you collective wisdom before I headed off in a random direction.

Thanks,

Jimbus

Never moon a werewolf!

In reply to generating html from a template by jimbus

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.