module ParserCommon def menu_level(page, current, menu, edit = false) res = '' if current <= menu.levels if current != 0 res << "
" item = rand(100000) res << "#{page.name}" if page.children.size > 0 res << "
" res << "" res << "
" end res << "
" else res << '' end end end def menu_li(page, current, menu, i, edit) res = "" end end