Created
July 21, 2015 21:07
-
-
Save jakewhiteley/4417c4206d7be12fb462 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 AppPath = '/teimr/', | |
App = blocks.Application({ | |
history: 'pushState' | |
}); | |
App.View('Navigation', { | |
options: { | |
url: AppPath + 'views/navigation.html', | |
}, | |
// populates the side nav with tags | |
sideNav: blocks.observable([1, 2, 3]), | |
ready: function() { | |
console.log('nav loaded') | |
} | |
}); | |
App.View('Main', { | |
options: { | |
url: AppPath + 'views/main.html', | |
}, | |
ready: function() { | |
console.log($('ul.tabs'), 'main loaded') | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Navigation.html: