Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

page.js is not my want;

  • Loading branch information...
commit 2cf6a215a22298203f86a5123d9fc07589af7b51 1 parent 1d89858
@switer authored
Showing with 12 additions and 8 deletions.
  1. +1 −1  index.html
  2. +0 −7 index.js
  3. +11 −0 main.js
View
2  index.html
@@ -50,6 +50,6 @@
<script src="bower_components/page/index.js"></script>
<script src="./header/header.js"></script>
<script src="./index/index.js"></script>
- <script scr="index.js"></script>
+ <script src="main.js"></script>
</body>
</html>
View
7 index.js
@@ -1,7 +0,0 @@
-!function () {
- console.log('!!!!!!!!!!!!');
- page('index', function () {
- console.log('!!!!!!!!!!!!!!');
- new Index();
- });
-}();
View
11 main.js
@@ -0,0 +1,11 @@
+!function () {
+ page('*', function (ctx, next) {
+ console.log(ctx);
+ next();
+ });
+ page('/index.html', function (ctx) {
+ console.log('!!!!!!!!!!!!!!');
+ new Index();
+ });
+ page();
+}();
Please sign in to comment.
Something went wrong with that request. Please try again.