From 88397d2708cf0119c4122ad13774a45a39c56e2e Mon Sep 17 00:00:00 2001 From: chris2tof Date: Thu, 1 Sep 2011 13:30:01 +0800 Subject: [PATCH] Modification of parser.rb for page rendering --- lib/parser.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/parser.rb b/lib/parser.rb index ea427b66..b8caa7c3 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -101,6 +101,11 @@ module Parser ret << item.i18n_variable[I18n.locale] ret << '' end + c.define_tag 'menu' do |tag| + home = get_homepage + menu = page.design.layout.menu + menu_level(home, 1, menu) + end end end