| /* | |
| author: daimajia | |
| name: appjs Express example | |
| email: daimajia@gmail.com | |
| any question feel free to email me :) | |
| */ | |
| '); | |
| '); | |
| // Create express server for routing | |
| '); | |
| express(); | |
| /* | |
| *This is default views jade files directory. | |
| *Remeber to create a index.jade file in this directory. | |
| */ | |
| '); | |
| bodyParser()); | |
| __express); | |
| renderFile); | |
| /** | |
| * Set up the express routes | |
| */ | |
| next){ | |
| ' }); | |
| }); | |
| ')); | |
| /** | |
| * Setup AppJS | |
| */ | |
| // override AppJS's built in request handler with connect | |
| bind(appRouter); | |
| // have express listen on a port:51686 | |
| 23453); | |
| ', { | |
| 640, | |
| 460, | |
| ' | |
| }); | |
| function(){ | |
| show(); | |
| center(); | |
| }); | |
| function(){ | |
| require; | |
| process; | |
| module; | |
| }); |
相关文章: