Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Follow up to RFC: Templating without a System

by theorbtwo (Prior)
on Jul 02, 2006 at 11:18 UTC ( #558844=note: print w/replies, xml ) Need Help??


in reply to Follow up to RFC: Templating without a System

After reading the beginning of your missive, I wonder if you've considered Text::Template.

  • Comment on Re: Follow up to RFC: Templating without a System

Replies are listed 'Best First'.
Re^2: Follow up to RFC: Templating without a System
by shmem (Canon) on Jul 02, 2006 at 12:04 UTC
    Yes, I did. The big difference between Text::Template and mine is the outside-in approach and the conversion of a template into an anonymous sub, apart from simplicity to have it as generic as possible. But Text::Template (as well as all other packages I've seen so far) are a great source for studying, to get me think of pitfalls I might not yet have considered.

    Just two details of Text::Template to highlight my concern: the usage of Safe in Text::Template, and it's concern about tainted data. Well, I think that's none of the templating functions's business, but of the caller.

    The builtin parser in Servlet (or OI) is for HTML, the plain text extension would be a bit more than just three s///, because it has do deal with whitespace properly.

    Point is, I want something as close as possible to format and write; and with effective caching.

    --shmem

    _($_=" "x(1<<5)."?\n".q/)Oo.  G\        /
                                  /\_/(q    /
    ----------------------------  \__(m.====.(_("always off the crowd"))."
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://558844]
help
Chatterbox?
[Yaerox]: At least I believe it's safer then Math::Random:: Secure (2010) tho. Thanks.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2016-12-06 10:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (102 votes). Check out past polls.