
Oct. 11, 2008
3:49 a.m.
On Oct 10, 2008, at 7:38 PM, Jared Grubb wrote:
You can basically do this using regular expressions; it's not as "pretty", but it does exactly the same thing
That's true; and you can use % to do the same thing as Template.substitute (though it's not as pretty). The point is, we already have a very pretty Template class that does this operation in one direction; it ought to do it in the other direction too. The fact that it doesn't is surprising to a newbie (speaking from personal experience there), and the equivalent 're' incantation is considerably harder to come up with -- even more so than using % is harder than Template.substitute. Best, - Joe