Modification of parser.rb for page rendering

This commit is contained in:
chris2tof 2011-09-01 13:30:01 +08:00
parent 492f691469
commit 88397d2708
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,11 @@ module Parser
ret << item.i18n_variable[I18n.locale]
ret << '</a>'
end
c.define_tag 'menu' do |tag|
home = get_homepage
menu = page.design.layout.menu
menu_level(home, 1, menu)
end
end
end