Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: The history of a templating engine

by Jenda (Abbot)
on Sep 12, 2006 at 07:54 UTC ( #572471=note: print w/ replies, xml ) Need Help??


in reply to The history of a templating engine

First of all, I finally fixed the bug with the <% q; %> syntax. I spent about a day mulling over it and trying to think about how to fix it with a fancy parser or something, but wasn't convinced I could catch all cases. Instead, I opted to wrap up everything in those tags inside an anonymous subroutine, execute it, and display the results. This naturally takes advantage of perl's functions not requiring the "return" keyword.

Maybe I misunderstood, but this looks like your templates will spend lots of time calling those anonymous subroutines, whould not

<% some; code; y %> => print OUT do {some; code; y};
suffice?


Comment on Re: The history of a templating engine
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-07-30 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls