Skip to content

Instantly share code, notes, and snippets.

@igustafson
Created May 4, 2011 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igustafson/956041 to your computer and use it in GitHub Desktop.
Save igustafson/956041 to your computer and use it in GitHub Desktop.
Menu Building Code
Menu = Sagamore.Models.Menu
Entry = Sagamore.Models.Menu.Entry
topMenu = new Menu
entries: [
new Entry title: 'Customers', url: '#/customers'
new Entry title: 'Sales', url: '#/sales'
]
moduleMenus =
sales: new Menu
entries: [
new Entry title: 'Sales' entries: [
new Entry title: 'Orders', url: '#/sales/orders'
new Entry title: 'Customers', url: '#/customers'
]
]
customers: new Menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment