Rodney Snell wrote:
Of course we can do:
either one [print "1"] [either two [print "2"][print "3"]]
print any [
if one ["1"]
if two ["2"]
if three ["3"]
"4" ; default
]
Keep in mind that ANY returns the first value found that is
different from NONE or FALSE; IF returns
Hi Sharriff!
I´m trying to code a function that would automatically
generate a TOC of of files in a directory
...
and every alphabet is a link to a sublist HTML file that contains links to
files starting with the alphabet displayed in the main TOC HTML file
...
but I dont know how to
In the usually simple tasks I give to REBOL, I've found that more often
than not it helps to start writing the code backwards - that is, write the
"output" function first, the one that will actually write the HTML pages.
Forget about the mechanics of reading in the directories and filenames, and
Here is my map. There a couple of ini methods that I use to
support ini files (map of maps). I'm sure it can be improved in many
ways so caveat emptor...
---
REBOL [Title: "Map Object"]
map!: make object!
[
name: copy ""
Hi!
Can someone tell me why the second snippet sometimes fails?
; selects all HTML or HTM files and stores them in a separate list
foreach file file-list [if find/any file ".ht?" [append toc-list :file]]
exits sometimes with a read error??!! ***
; parse the titles from the html and
Earlier I wrote:
...eText to XML/XHTML/HTML and not bother to inflict markup on people.
Instead, I'll use white space intelligently along with Rebol embedded in the
script (in a very nice way), to generate web pages.
Here is the eText specification that Garold and I have been working on.
In the old days, Rebol's read used to return the http
headers, but now it is smart and strips them out. Wouldn't
it be nice if there were a refinement to elect not to strip
them out? Or better still, factor 'read' out rather than
have it defined as a primitive so we could do this
ourselves?
Hello list,
looking thru the hundreds of read and unread posts to this list, XML and
REBOL's inbuild XML 'support' is mentioned at least every some days.
Someone - wasn't it Andrew? - wanted to convert XML's DTDs to REBOL's parse
rules. I must have overseen the :) which followed this idea ...
Christian wrote:
Someone - wasn't it Andrew? - wanted to convert XML's DTDs to REBOL's
parse rules. I must have overseen the :) which followed this idea ...
Here's the smileyface:
:-)
...I haven't got time tonight/this morning to produce a full XML
solution that uses objects. Maybe