Created
September 24, 2014 09:25
-
-
Save jmas/512b577ff05f612314eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var navItems = new Arr( | |
{ | |
name: 'Home', | |
path: '/' | |
}, | |
{ | |
name: 'About Us', | |
path: '/aboutus', | |
active: true | |
}, | |
{ | |
name: 'Projects', | |
path: '/projects', | |
active: true | |
} | |
); | |
var list = new List(navItems, document.getElementById('nav'), '<li><a href="{{path}}">{{name}}</a></li>'); | |
navItems.push({ | |
name: 'Settings', | |
path: '/settings' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment