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/
-><-

----- Original Message -----
From: "Jason Cunliffe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Petr Krenzelok" <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 8:16 PM
Subject: [REBOL] Re: template driven development? Re: Rebol Server Pages


> > uhm, well - what's that? :-) Such kind of code it totally unacceptable
> > to me :-) I hope build-markup does not work that way??? Do you really
> > like the mixture of Rebol code and html that way? What will be the
> > result? Your visual editor will show both strings unless you upload your
> > page and let it be processed in production environment, where rebol is
> > installed.
>
> hmm.. I tend to agree.
> But always people have so many different needs and workflow styles.
> To each his/her own tool. The more options exist for REBOL the better I
think..
>
> 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. But, if the progammer wants/needs to
mix
> code and presentation stuff within, of course they still can. Also there
is now
> new session handling, a very direct syntax for cgi variables [GET or POST]
and
> libraries can be loaded securely adn clenly to keep inline code concise
and
> readable, without sacrificing feature scope..
> http://www.rebolfrance.org/projets/magic/magic110.zip
>
> ./Jason
>
>
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to