├── test ├── fixtures │ ├── .name │ ├── empty.txt │ ├── broken.send │ ├── name.txt │ ├── % of dogs.txt │ ├── nums.txt │ ├── snow ☃ │ │ └── .gitkeep │ ├── todo.txt │ ├── name.tmpl │ ├── pets │ │ └── names.txt │ ├── users │ │ ├── tobi.txt │ │ └── index.html │ ├── blog │ │ ├── index.html │ │ └── post │ │ │ └── index.tmpl │ ├── todo.html │ ├── user.html │ ├── user.tmpl │ ├── email.tmpl │ ├── default_layout │ │ ├── name.tmpl │ │ └── user.tmpl │ └── local_layout │ │ └── user.tmpl ├── support │ ├── env.js │ ├── tmpl.js │ └── utils.js ├── app.listen.js ├── app.del.js ├── regression.js ├── req.path.js ├── res.get.js ├── acceptance │ ├── ejs.js │ ├── markdown.js │ ├── hello-world.js │ ├── error.js │ ├── cookie-sessions.js │ ├── route-map.js │ ├── params.js │ ├── multi-router.js │ ├── vhost.js │ ├── downloads.js │ ├── content-negotiation.js │ ├── cookies.js │ ├── resource.js │ ├── error-pages.js │ ├── route-separation.js │ ├── auth.js │ └── web-service.js ├── req.route.js ├── res.sendStatus.js ├── app.locals.js ├── res.locals.js ├── app.all.js ├── req.signedCookies.js ├── res.clearCookie.js ├── req.acceptsEncoding.js ├── req.acceptsEncodings.js ├── req.xhr.js ├── middleware.basic.js ├── req.fresh.js ├── req.stale.js ├── res.type.js ├── req.acceptsCharset.js ├── req.acceptsCharsets.js ├── app.route.js ├── res.links.js ├── req.param.js ├── req.get.js ├── req.acceptsLanguage.js ├── req.acceptsLanguages.js ├── app.head.js ├── app.routes.error.js ├── req.ips.js ├── res.attachment.js ├── res.vary.js ├── req.baseUrl.js ├── app.engine.js ├── req.range.js ├── exports.js ├── req.secure.js ├── res.location.js ├── req.protocol.js ├── app.options.js ├── res.append.js ├── req.ip.js ├── app.js ├── res.set.js ├── req.accepts.js ├── utils.js ├── app.response.js └── app.request.js ├── .eslintignore ├── examples ├── static-files │ ├── public │ │ ├── hello.txt │ │ ├── js │ │ │ └── app.js │ │ └── css │ │ │ └── style.css │ └── index.js ├── auth │ └── views │ │ ├── foot.ejs │ │ ├── head.ejs │ │ └── login.ejs ├── ejs │ ├── views │ │ ├── footer.html │ │ ├── users.html │ │ └── header.html │ ├── public │ │ └── stylesheets │ │ │ └── style.css │ └── index.js ├── downloads │ ├── files │ │ ├── amazing.txt │ │ ├── notes │ │ │ └── groceries.txt │ │ └── CCTV大赛上海分赛区.txt │ └── index.js ├── error-pages │ ├── views │ │ ├── footer.ejs │ │ ├── 404.ejs │ │ ├── error_header.ejs │ │ ├── 500.ejs │ │ └── index.ejs │ └── index.js ├── route-separation │ ├── views │ │ ├── footer.ejs │ │ ├── users │ │ │ ├── view.ejs │ │ │ ├── index.ejs │ │ │ └── edit.ejs │ │ ├── index.ejs │ │ ├── header.ejs │ │ └── posts │ │ │ └── index.ejs │ ├── site.js │ ├── post.js │ ├── public │ │ └── style.css │ ├── user.js │ └── index.js ├── markdown │ ├── views │ │ └── index.md │ └── index.js ├── mvc │ ├── controllers │ │ ├── main │ │ │ └── index.js │ │ ├── pet │ │ │ ├── views │ │ │ │ ├── show.ejs │ │ │ │ └── edit.ejs │ │ │ └── index.js │ │ ├── user │ │ │ ├── views │ │ │ │ ├── list.hbs │ │ │ │ ├── show.hbs │ │ │ │ └── edit.hbs │ │ │ └── index.js │ │ └── user-pet │ │ │ └── index.js │ ├── public │ │ └── style.css │ ├── views │ │ ├── 404.ejs │ │ └── 5xx.ejs │ ├── db.js │ ├── lib │ │ └── boot.js │ └── index.js ├── content-negotiation │ ├── db.js │ ├── users.js │ └── index.js ├── hello-world │ └── index.js ├── multi-router │ ├── controllers │ │ ├── api_v1.js │ │ └── api_v2.js │ └── index.js ├── search │ ├── public │ │ ├── client.js │ │ └── index.html │ └── index.js ├── view-locals │ ├── views │ │ └── index.ejs │ └── user.js ├── cookie-sessions │ └── index.js ├── session │ ├── index.js │ └── redis.js ├── vhost │ └── index.js ├── online │ └── index.js ├── view-constructor │ ├── github-view.js │ └── index.js ├── cookies │ └── index.js ├── error │ └── index.js ├── params │ └── index.js ├── multipart │ └── index.js ├── route-map │ └── index.js ├── README.md ├── resource │ └── index.js ├── route-middleware │ └── index.js └── web-service │ └── index.js ├── .editorconfig ├── .eslintrc.yml ├── index.js ├── .gitignore ├── benchmarks ├── run ├── middleware.js └── Makefile ├── lib ├── middleware │ ├── init.js │ └── query.js └── express.js ├── LICENSE ├── Security.md ├── Collaborator-Guide.md └── package.json /test/fixtures/.name: -------------------------------------------------------------------------------- 1 | tobi -------------------------------------------------------------------------------- /test/fixtures/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/broken.send: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/name.txt: -------------------------------------------------------------------------------- 1 | tobi -------------------------------------------------------------------------------- /test/fixtures/% of dogs.txt: -------------------------------------------------------------------------------- 1 | 20% -------------------------------------------------------------------------------- /test/fixtures/nums.txt: -------------------------------------------------------------------------------- 1 | 123456789 -------------------------------------------------------------------------------- /test/fixtures/snow ☃/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/todo.txt: -------------------------------------------------------------------------------- 1 | - groceries -------------------------------------------------------------------------------- /test/fixtures/name.tmpl: -------------------------------------------------------------------------------- 1 |
$name
-------------------------------------------------------------------------------- /test/fixtures/pets/names.txt: -------------------------------------------------------------------------------- 1 | tobi,loki -------------------------------------------------------------------------------- /test/fixtures/users/tobi.txt: -------------------------------------------------------------------------------- 1 | ferret -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | node_modules 3 | -------------------------------------------------------------------------------- /examples/static-files/public/hello.txt: -------------------------------------------------------------------------------- 1 | hey -------------------------------------------------------------------------------- /test/fixtures/blog/index.html: -------------------------------------------------------------------------------- 1 | index -------------------------------------------------------------------------------- /test/fixtures/todo.html: -------------------------------------------------------------------------------- 1 |{{user.name}}
-------------------------------------------------------------------------------- /test/fixtures/user.tmpl: -------------------------------------------------------------------------------- 1 |$user.name
-------------------------------------------------------------------------------- /test/fixtures/email.tmpl: -------------------------------------------------------------------------------- 1 |This is an email
-------------------------------------------------------------------------------- /examples/static-files/public/js/app.js: -------------------------------------------------------------------------------- 1 | // foo 2 | -------------------------------------------------------------------------------- /test/fixtures/blog/post/index.tmpl: -------------------------------------------------------------------------------- 1 |$name
-------------------------------------------------------------------------------- /test/fixtures/users/index.html: -------------------------------------------------------------------------------- 1 |tobi, loki, jane
-------------------------------------------------------------------------------- /examples/auth/views/foot.ejs: -------------------------------------------------------------------------------- 1 |