From: Joseph McDonald Date: 2000-12-13T11:40:02+09:00 Subject: [ruby-talk:7124] ruby code to generate menus Hi guys, I have some code dynamically generate a menu tree in ruby. The example is at: http://boromir.vpop.net/~joe/menu.cgi?action=url7 The class code is at: http://boromir.vpop.net/~joe/menu.txt the driver is at: http://boromir.vpop.net/~joe/menucgi.txt The idea is that the thing that parses the tree will be heavy, and the renderer will be light (think fastcgi or modruby -- parse once render many times.). so parse_tree is compute intensive but print_tree is not. So my question is, what do you think of the basic algorithm? If it passes muster, is this something I should clean up and put on RAA? If not, let me have it, I have thick skin. :-) thanks, -joe