use directories for structure

This commit is contained in:
s2
2020-05-26 10:37:57 +02:00
parent 66580d4847
commit ae4aaf2668
1287 changed files with 92093 additions and 13113 deletions

17
app/about/about.js Normal file
View 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);
})();

View 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>