Parsing rules
Emmanuel. M. Decarie
emm at scriptdigital.com
Fri Nov 9 08:14:22 PST 2001
> >quotes, and less-than signs inside a stretch of JavaScript need to be
>>ignored. It's easier if you introduce the JavaScript during macro
I posted the following on the Frontier-Server list (under "Feature
Request [was html.processMacros odd behavior]")
Maybe this could be a solution to some of the problems for the people
that use the macro processor in different ways than the "standard"
way.
À (At) 10:56 -0500 09/11/01, Emmanuel. M. Decarie écrivait (wrote) :
>*** Ok, here's a feature request. ***
>
>Imagine if html.processMacros could have a new argument, the
>address of a table that contains tags for which the content will be
>not evaluated by the macro processor.
>
>For example:
>
>html.processMacros (s, plainprocessing=false, adrPageTable=nil,
>adrEscapeTagTable=nil)
>
>The adrEscapeTagTable could be like this:
>
>Name Value Kind
>----------------------------------------------
><!-- --> string[3]
><% %> string[2]
>
>So when html.processMacros is going to parse a string and see '<!--'
>it doesn't evaluate anything until it sees '-->'.
>
>This table could also be in the #prefs of a website.
>
>Maybe there is others solutions for this problem, especially
>regarding the new features of html.processMacros.
><http://frontier.userland.com/changes/kernel71>
>
>What the people on this list and UserLand folks think about this?
>Does it look like a hard thing to implement.
>
>If I could have this feature, I could easily:
>
>- use Javascript and html.processMacros
>- embed Perl code for static Manila site served by Apache/Mason
>
>I think this could open Manila to very interesting applications.
Cheers
-Emmanuel
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Emmanuel Décarie - Consultant
Programmation pour le Web - Programming for the Web
UserLand Frontier - Perl - JavaScript - AppleScript - HTML - XML
http://www.scriptdigital.com
---> The Frontier Newbie Toolbox:
<http://www.scriptdigital.com/fnt/frontierNewbieToolbox.html>
More information about the Frontier-Users
mailing list