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

Cal =?ISO-8859-1?Q?Dixon=B4s?= webserver

 [1/3] from: carlos:lorenz:gmai:l at: 12-Jul-2007 15:03

Hi list In Cal Dixon=B4s webserver documentation it is said: <<Files with an extension of ".rhtml" are pre-proccesed by the server. Anything enclosed in a pair of ":[" and "]:" will be executed as rebol code and the value of the expression will be inserted into the document at that location.>> I am testing the following code into a file with .rhtml extension: :[ print "hello world!" ]: and the server returns ?unset? thanks for any help -- Carlos Lorenz Unidade Lorenz Ltda (11) 4034 1971

 [2/3] 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. 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:

 [3/3] from: carlos::lorenz::gmail::com at: 13-Jul-2007 10:49

Brian, Thanks for pointing me the right way of using Cal=B4s :[ ]: sequence. It works like a charm now :). I=B4ll take a look at Cheyenne though I found Cal=B4s webserver very simple to use (no installation required). By the way DocKimbel=B4s mysql driver is a fabulous piece of code and I have been using it for 4 years with no problems at all. Cheers 2007/7/12, Brian Tiffin <>:
> Carlos, > Cal's :[ ]: sequence uses the *result* of the expression, you don't need the
<<quoted lines omitted: 44>>
> To unsubscribe from the list, just send an email to > lists at with unsubscribe as the subject.
-- Carlos Lorenz Unidade Lorenz Ltda (11) 4034 1971

  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted