Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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};

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://572471]
[marto]: good morning all
[Discipulus]: good morning marto! a better weekend? i hope

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-05-21 07:47 GMT
Find Nodes?
    Voting Booth?