Closed markmandel closed 12 years ago
thank you once again!
I wonder if the better long term solution would be to add a compiler, instead of always re-interpreting template. Use some a basic lexical parser that converts everything into a token array that we can loop over quickly and process.
I like what a lot of JavaScript templating engines do, they compile the template into executable code--which is slick--but not a great option for ColdFusion.
that would actually be a good thing to have. you can look at the cfml-liquid project to see how it's done if you need some inspiration.
Started issue #7 to start talking about a compilation system.
I set up a cache for ReFindNoCaseValues() so that it didn't have to re-regex the template on each request.
Also tweaked some variable resolution for maximum speed.