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

[REBOL] Re: Cal =?iso-8859-1?Q?Dixon=B4s?= webserver

From: btiffin::rogers::com at: 12-Jul-2007 14:41

Carlos, Cal's :[ ]: sequence uses the *result* of the expression, you don't need the print function. :[ "hello world!" ]: will do what you want, inserting the string into the webpage. print is a funny function to get used to when learning REBOL. The print function returns **no result** or unset! in REBOL speak. It is designed that way so that print expressions can be inserted into code, produce output to the console, but not overly influence the surrounding code. So the cool bit with Cal's code is for stuff like :[ reform ["Hey" name "Welcome to my fantabulous website"] ]: Once you've snagged name from a cgi script form processor. Or the ubiquitous :[ now/date ]: to get the current date or :[ reform ["You are visitor" read %hitcount.r] ]: for hit counts. Not to disrespect Cal's cool webserver, you may want to check out Cheyenne, a very complete and well supported web server by DocKimbel. The Doc has been doing some great work and I use his nifty code to run my web hosting service. http://softinnov.org Keep an eye on this site, as Doc just hinted that a full release of version 1.0 is on the visible horizon. Cheers, Brian On Thursday 12 July 2007 14:03, Carlos Lorenz wrote: