# File lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb, line 466
        def build_class_list(level, from, section, infile=nil)
            res = ""
            prefix = "  ::" * level;

            from.modules.sort.each do |mod|
                next unless mod.section == section
                next if infile && !mod.defined_in?(infile)
                if mod.document_self
                    res << 
                    prefix <<
                    "Module " <<
                    href(mod.viewer.path, "link", mod.full_name) <<
                    "<br />\n" <<
                    build_class_list(level + 1, mod, section, infile)
                end
            end

            from.classes.sort.each do |cls|
                next unless cls.section == section
                next if infile && !cls.defined_in?(infile)
                if cls.document_self
                    res      <<
                    prefix << 
                    "Class " <<
                     href(cls.viewer.path, "link", cls.full_name) <<
                    "<br />\n" <<
                    build_class_list(level + 1, cls, section, infile)
                end
            end

            res
        end