A community of Frontier
and Radio Users


Meridian News


Community List


Regex Project

RE: Thanks Brent

Posted 
Last Modified 
In Response To 
 
3/1/2002; 3:36 PM by Brian V Hughes
3/1/2002; 3:36 PM by Brian V Hughes
RE: Thanks Brent (#16249)
Reply To This Message [Edit]
--On 03/01/2002, Brent Simmons wrote:
>Don't forget about string.multipleReplaceAll, my favorite new verb.
>Depending on what you're doing it can be a good, fast, lightweight
>replacement for html.processMacros.
>
>http://docserver.userland.com/string/multipleReplaceAll

If not for the completely accidental discovery I made a few months
ago, string.multiReplaceAll would be my new best friend. Up until
that point, I was mostly using html.processMacros to slot already
prepared data into string templates, which is something that
string.multiReplaceAll is perfect for doing.

>PS In case anyone's missed it, here are the change notes for Frontier
>8 (a list I'm rather proud of).
>
>http://frontier.userland.com/changes/80
>
>Also note the new features for html.processMacros, which has gotten
>even more versatile.

Yup. And with my discovery, which may or may not come as a surprise
to others, I think html.processMacros becomes an almost "killer
feature" of Frontier. I've been meaning to write up the discovery,
what it means, and why it's not a big surprise if you know how
Frontier works, but I just haven't had the time. Alan German
suggested I give the list a little taste, so I'll leave you with this
code snippit...

on foo () {
return ("Process Macros is way cool!")};
dialog.notify (html.processMacros ("{foo ()}", false, @temp))

-Brian

Enclosures


None.  

Replies


None.