I've done little more than play with Rebol a few times, so I
figured a good way to learn it would be to do some thing
that I though would be simple. Rebuild my web site using
Carl's build-site.r from the script library.
The problem is that build-site.r assumes all the input files
are in the same directory, and all the output files go to
the same output directory.
I want to use subdirectories to keep all my files organized.
So far with my attempts at hacking at the menu building
section, I just keep ending up with recursive menus going
deeper and deeper.
Whats the right way to change this section to support
subdirectories?
Snip from build-site.r:
link-menu: func [
"Create a linked menu item."
menu-tail file text sub current
][
insert menu-tail reduce either current [[
either sub [{ <font size="1" color="#A00000">}][
{<font color="#A00000"><B>}]
text<BR>
either sub [</font>]["</font></B>"]
]][[
either sub [{ <font size="1">}][<B>]
{<A HREF="} form file {">} text </A><BR>
either sub [</font>][</B>]
]]
]