Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Text::Template and YAML

by simonm (Vicar)
on Jul 23, 2005 at 16:01 UTC ( #477494=note: print w/ replies, xml ) Need Help??


in reply to Re: Text::Template and YAML
in thread Text::Template and YAML

Using templates is a good idea, but for marking up a Perl code template, I'd choose a syntax other than Text::Template's interpolation style, which requires a lot of back-slashing of braces and variable sigils. I think the templates would be easier to read if in the HTML::Mason or EmbPerl syntaxes, both of which are equally easy to fill in.


Comment on Re^2: Text::Template and YAML
Re^3: Text::Template and YAML
by duelafn (Priest) on Jul 24, 2005 at 16:21 UTC

    It is possible (and even encouraged by the documentation) to change the delimiters that Text::Template looks for so that you don't have to backslash the braces. For instance:

    Text::Template->new(DELIMITERS => ['<<:', ':>>']);

    Good Day,
        Dean

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://477494]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-07-22 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (110 votes), past polls