Search code examples
rebolrebol3r3-gui

Rebol3 - How do you extract all the GUI styles with descriptions in Rebol3 after load-gui is evaluated?


(edited per suggestions)

How do you extract all the GUI styles with descriptions in Rebol3 after load-gui is evaluated?


Solution

  • from @rgchris, an initial idea:

    REBOL []
    load-gui 
    do http://reb4.me/r3/rsp 
    
    style-info: collect [
        foreach [name style] body-of guie/styles [
            keep form name keep style/about
        ]
    ] 
    
    styles-list: render-each [name about] style-info {<h1><%== name %></h1>^/<p><%== about %></p>^/}
    
    write %styles-list.html styles-list