Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Rebol Server Pages

From: al:bri:xtra at: 4-Nov-2000 8:28

Bo wrote:
> On my webserver that handles embedded REBOL (I'm not sure if this is the
same as your .RSP idea), it is as simple as this:
> <HTML><HEAD><TITLE>Example</TITLE></HEAD> > > <H1>Bo's embedded REBOL example</H1> > > <P>The time is <REBOL>output now</REBOL> > > <P>This webserver is running on REBOL/<REBOL> > output [system/product system/version] > </REBOL> > > </HTML> >
In my current working HTML dialect the above can be written as: HTML [ title "Example" body h1 "Bo's embedded REBOL example" ip ["The time is " now] p ["This webserver is running on REBOL/" system/product " " system/version] ] Much like this:
>> do %html.r >> print HTML [
[ title "Example" [ body [ h1 "Bo's embedded REBOL example" [ ip ["The time is " now] [ p ["This webserver is running on REBOL/" system/product " " system/version] [ ] <html> <head> <title>Example</title> </head> <body> <h1>Bo's embedded REBOL example</h1> The time is 4-Nov-2000/8:26:34+13:00<br>&nbsp &nbsp &nbsp This webserver is running on REBOL/View 0.10.38.3.1 </body> </html> It even generates correct HTML! :-) A .RSP is more to attract attention. People might ask of Rebol (and web servers): "Does it run ASP?" And the answer will be: "No, but it runs RSP, the Rebol equivalent."
> I've done much more complex things with it in the past like building HTML
tables on the fly from dynamic data, etc. I like to keep it clean looking. Me too, as shown by my HTML "dialect". But RSP provides an equivalent to ASP (and JSP) that management (I think) could understand, and tick off in feature comparison. It also provides a easier way for newcomers with ASP and JSP experience another way into Rebol. I hope that explains my motivation for that. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/