use directories for structure
This commit is contained in:
17
app/about/about.js
Normal file
17
app/about/about.js
Normal file
@@ -0,0 +1,17 @@
|
||||
(function() {
|
||||
// globals
|
||||
MyApp.About = {};
|
||||
|
||||
|
||||
// utility functions
|
||||
|
||||
// app functions
|
||||
MyApp.About.renderAboutPage = function() {
|
||||
$('.js-page-container').html(ejs.rr('/app/about/templates/about.ejs'));
|
||||
};
|
||||
|
||||
// events
|
||||
|
||||
// app startup
|
||||
page('/about', MyApp.About.renderAboutPage);
|
||||
})();
|
Reference in New Issue
Block a user