[REBOL] Re: template driven development? Re: Rebol Server Pages
From: al:bri:xtra at: 9-Oct-2002 16:42
Jason wrote:
> Personally, I prefer Olivier Auverlot's approach. You may too. I like it
because it cleanly separates REBOL code from the html. It just goes cleanly
within <rebol></rebol> tags.
Be aware when using Magic, that the Rebol expression between the
<rebol></rebol> tags must be complete! This can be seen in the 'parse code
for magic, quoted below:
until [
either found? find m-page "<rebol>" [
parse m-page [ copy m-code to "<rebol>" m-mark: (
if not none? m-code [ prin m-code ]
m-page: copy m-mark
parse m-page [ thru "<rebol>" copy m-code thru "</rebol>" m-mark: (
if error? m-err: try [
do m-code
] [ m-error (mold disarm m-err) ]
m-page: copy m-mark
) ]
) ]
] [
prin m-page
true
]
]
Andrew Martin
ICQ: 26227169 http://valley.150m.com/