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

[REBOL] Re: IP Address

From: AJMartin:orcon at: 24-Jan-2004 11:45

Mauro wrote:
> Is there a good (but simple) XML and HTML builder in Rebol out there that
I can embed in my bot (something more than XMLgen)? Yes. You could use my ML.r script, which generates HTML and/or XML from a Rebol dialect. The following function shows my common envelope to surround a CGI response: Envelope: func [Head [block!] Body [block!]] [ print rejoin [ "Content-Type: " 'text/html newline newline ML compose/deep [<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" ""> html [ head [(Head)] body [(Body)] ] ] ] quit ] If you're interested in it, let me know, and I'll send you the scripts. -- Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169