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);
|
||||
})();
|
11
app/about/templates/about.ejs
Normal file
11
app/about/templates/about.ejs
Normal file
@@ -0,0 +1,11 @@
|
||||
<p>This is the coolest app ever.<p>
|
||||
|
||||
<ul>
|
||||
<li>simple</li>
|
||||
<li>fast</li>
|
||||
<li>easy to understand</li>
|
||||
<li>easy to mantain</li>
|
||||
<li>easy to evolve</li>
|
||||
</ul>
|
||||
|
||||
<p>yay!<p>
|
Reference in New Issue
Block a user