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

[REBOL] New dialect for building HTML and XML tags

From: AJMartin::orcon::net::nz at: 24-Dec-2003 22:51

Hi! I've just discovered a new dialect in Rebol suitable for building HTML and XML tags in conjunction with my ML dialect. Dialect: [ < a href http://www.rebol.com title "Rebol HQ" > "A link to Rebol HQ!" ] Note that the tag contents are between two angle brackets, and look like a tag value. After running compose/deep over the block, the tag! value can be assembled from it's pattern of a '< word followed by a word! (or url!), then any number of pairs of word! (or url!) and other value, followed by a closing '> word. After running through my (yet to be enhanced) ML, the above dialect will look like: <a href="http://www.rebol.com title="Rebol HQ">A link to Rebol HQ!</a> I think it's neat! Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/