Sha256: 1459de9b702c33f8117028a48a0901e53abc01620a866ed49c1347a74e63dfcd
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
# Update the list of helper paths Ramaze::HelpersHelper.options.paths << __DIR__('menus') # Load all our models require __DIR__('menus/model/menu') require __DIR__('menus/model/menu_item') # Load all controllers require __DIR__('menus/controller/menus') require __DIR__('menus/controller/menu_items') # Load all Liquid tags and register them require __DIR__('menus/liquid/menus') Liquid::Template.register_tag('menus', Menus::Liquid::Menus) # Describe the package Zen::Package.add do |p| # The name of the package p.name = 'Menus' # The person/company that made the package p.author = 'Yorick Peterse' # A URL to a page about the package p.url = 'http://zen-cms.com/userguide/menus' # Describe what your theme or extension does. p.about = 'The Menus extension allows you to easily create navigation menus for the frontend.' ## # An identifier is a unique string for your package in the following format: # # * com.AUTHOR.NAME for extensions # * com.AUTHOR.themes.NAME for themes # # An example of this would be "com.zen.sections" or "com.zen.themes.zen_website". # p.identifier = 'com.zen.menus' ## # Path to the directory containing the controllers, models, etc. # p.directory = __DIR__('menus') ## # Path to the directory containing all migrations for this package. # p.migration_dir = __DIR__('../migrations') # Note that themes can not have menu items (they'll be ignored). p.menu = [{ :title => "Menus", :url => "/admin/menus" }] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zen-0.2.4.1 | lib/zen/package/menus/lib/menus.rb |
zen-0.2.4 | lib/zen/package/menus/lib/menus.rb |