forked from totaljs/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af72209
commit 0d3ee40
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
exports.install = function(framework) { | ||
framework.route('/', view_homepage); | ||
}; | ||
|
||
function view_homepage() { | ||
this.view('homepage'); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
// Merging files | ||
framework.merge('merge.js', '/js/a.js', '/js/b.js', 'http://www.totaljs.com/inject.js'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// =================================================== | ||
// IMPORTANT: only for development | ||
// total.js - web application framework for node.js | ||
// http://www.totaljs.com | ||
// =================================================== | ||
|
||
require('total.js').http('debug'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var exports = {}; | ||
|
||
console.log('a'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('b'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@{layout('')} | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Merging</title> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=10" /> | ||
<meta name="format-detection" content="telephone=no"/> | ||
<meta name="viewport" content="width=1024, user-scalable=yes" /> | ||
<meta name="robots" content="all,follow" /> | ||
<script src="/merge.js"></script> | ||
</head> | ||
<body> | ||
|
||
OPEN WEB DEVELOPER TOOLS -> CONSOLE | ||
|
||
</body> | ||
</html> |