diff --git a/.gitignore b/.gitignore index 1665271..e209f14 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ - -tmp/ +/tmp/ +node_modules +index.js.* +index.pid +*.table +*.nosql diff --git a/controllers/default.js b/controllers/default.js index 665fc4c..388843b 100755 --- a/controllers/default.js +++ b/controllers/default.js @@ -1,16 +1,8 @@ exports.install = function() { - ROUTE('/'); - ROUTE('/services/', view_services); - ROUTE('/contact/'); - ROUTE('/references/'); + ROUTE('/*'); // Enables a localization mechanism + compression for all client-side components LOCALIZE('/components/*.html', ['compress']); }; - -function view_services() { - var self = this; - self.view('services'); -} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..ebb08f7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,24 @@ +{ + "name": "emptyproject", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "emptyproject", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "total4": "latest" + } + }, + "node_modules/total4": { + "version": "0.0.95", + "resolved": "https://registry.npmjs.org/total4/-/total4-0.0.95.tgz", + "integrity": "sha512-nYO7UEp4dl3NJiYZUn9WyhPuHUIE482Ztg9tyWyAATF06C0HLp7lHY11Zp6aEOFqPhJZoNUwfKFGXAt/MUPUTA==", + "bin": { + "total4": "bin/total4" + } + } + } +} diff --git a/public/components/contactform.html b/public/components/contactform.html index f09a30c..6317a64 100644 --- a/public/components/contactform.html +++ b/public/components/contactform.html @@ -1,52 +1,58 @@ - + + + \ No newline at end of file diff --git a/public/components/newsletter.html b/public/components/newsletter.html index d6bf529..4344e85 100644 --- a/public/components/newsletter.html +++ b/public/components/newsletter.html @@ -1,7 +1,7 @@ -
-
-
-
+ +
+
+
\ No newline at end of file diff --git a/public/pages/home.html b/public/pages/home.html new file mode 100644 index 0000000..2dedd1e --- /dev/null +++ b/public/pages/home.html @@ -0,0 +1,53 @@ +

Total.js Example - pages/home.html

+ +
+
+ Eshop +
+
+ Easy modifications +
+
+ Redesign it +
+
+
+
+ +
+ + +
+ +
+
+
+
+
+
+

Lorem ipsum dolor

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

+
+
+

Lorem ipsum dolor

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

+
+
+

Lorem ipsum dolor

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

+
+
+

Lorem ipsum dolor

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

+
+
+
+
+
+
+ CONTACT US +
+
+ + \ No newline at end of file diff --git a/views/references.html b/public/pages/references.html similarity index 99% rename from views/references.html rename to public/pages/references.html index ff1e759..87e5e2a 100644 --- a/views/references.html +++ b/public/pages/references.html @@ -38,4 +38,8 @@

References

Lorem IpsumLorem Ipsum Alias
- \ No newline at end of file + + + + diff --git a/views/services.html b/public/pages/services.html similarity index 98% rename from views/services.html rename to public/pages/services.html index 1ecc3cd..d064739 100644 --- a/views/services.html +++ b/public/pages/services.html @@ -41,4 +41,8 @@

Lorem ipsum dolor sit

Lorem ipsum dolor sit

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Exercitationem voluptate excepturi sunt ex tempora sit obcaecati consequatur asperiores doloremque assumenda dolorum totam possimus, ipsa eveniet, dolor temporibus magnam! Praesentium, maiores. - \ No newline at end of file + + + + diff --git a/views/contact.html b/views/contact.html index 5b0f80b..64d4cd4 100644 --- a/views/contact.html +++ b/views/contact.html @@ -1,10 +1,18 @@ @{title('Contact')} + + +
-
+
-

@{title}

- -
+

@{title}

+ +
-
\ No newline at end of file + + + + + diff --git a/views/index.html b/views/index.html index 6908a90..a013174 100755 --- a/views/index.html +++ b/views/index.html @@ -1,49 +1,59 @@ @{title('Full website example')} -

Total.js Example

-
-
- Eshop -
-
- Easy modifications -
-
- Redesign it -
-
-
-
-
- -
-
-
-
-
-
-
-
-

Lorem ipsum dolor

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

-
-
-

Lorem ipsum dolor

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

-
-
-

Lorem ipsum dolor

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

-
-
-

Lorem ipsum dolor

-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate vitae ipsam nesciunt officia, ipsa quo molestiae ex quibusdam praesentium odit.

-
-
-
-
-
-
- CONTACT US -
-
\ No newline at end of file + + + + + + + + + diff --git a/views/layout.html b/views/layout.html index 9b79da4..fd4c454 100644 --- a/views/layout.html +++ b/views/layout.html @@ -7,13 +7,18 @@ - - + + + + @{import('meta', 'head', 'default.css', 'default.js', 'favicon.ico')} - + + + + -
+
@{config.name}