TJ Holowaychuk
6bebe0837f
refactor res.render() to prevent clobbering "locals"
2012-08-11 15:04:54 -07:00
TJ Holowaychuk
26eeb64640
add err.view property for view errors. Closes #1226
2012-07-11 08:45:37 -07:00
riadh
5426eb0b62
add "jsonp callback name" setting
2012-07-06 08:53:31 -07:00
TJ Holowaychuk
4f7c4d1051
remove app.locals.use and res.locals.use
...
there are a few reasons for this:
a) less API, simpler implementation ...
b) difficult to inherit cleanly from subapps
c) effectively the same as parallelized middleware (use connect-parallel for example)
lastly this api in a sense promotes some obscure uses since
they may be scattered throughout rather than explicitly
given to specific routes or used globally as middleware etc
2012-07-05 18:46:19 -07:00
TJ Holowaychuk
78845e7d23
fix app.locals.use() when mounting apps
2012-07-05 18:31:02 -07:00
TJ Holowaychuk
170dcc2907
Added "methods" dep
2012-06-26 11:38:55 -07:00
Pavel Lang
6556cefc71
Refactoring: no need for add 'del' and 'all' to methods
2012-06-18 04:55:25 +03:00
TJ Holowaychuk
d9aea70ccc
removed file heading comments
2012-05-03 08:43:42 -07:00
TJ Holowaychuk
dd33ef2eb6
Added res.locals.use(). Closes #1120
2012-05-03 08:42:18 -07:00
TJ Holowaychuk
18cdb3d845
Added public app.routes. Closes #887
...
keep things simple for now :)
2012-05-02 16:19:41 -07:00
TJ Holowaychuk
441b309959
Fixed req/res proto inheritance
2012-04-26 04:38:33 -07:00
TJ Holowaychuk
d0bc0ad2ca
Added new mvc example
2012-04-26 03:53:49 -07:00
TJ Holowaychuk
58d522d824
restore req/res proto
2012-04-26 03:22:44 -07:00
TJ Holowaychuk
a376980a69
update headers
2012-04-25 21:49:43 -07:00
TJ Holowaychuk
18a6bbfd80
docs
2012-04-25 17:59:02 -07:00
TJ Holowaychuk
fab3e91973
app.engine() docs
2012-04-18 17:23:54 -07:00
TJ Holowaychuk
b4cd6bb8f0
removed old route reflection methods
2012-04-15 21:01:33 -07:00
TJ Holowaychuk
7e81cad0bf
Added new dox API docs
2012-04-15 21:01:17 -07:00
TJ Holowaychuk
089a83363f
Changed: enable "jsonp callback" as a default
2012-04-15 11:20:25 -07:00
TJ Holowaychuk
67ca22b6e4
throw when callback is not given to app.engine()
2012-04-04 12:30:25 -07:00
TJ Holowaychuk
18fa2c9c7d
removed debug() for .use()
...
connect does this now
2012-04-02 15:54:19 -07:00
TJ Holowaychuk
04d43d60b7
added nicer error messages for failed view lookup. Closes #1065
2012-04-02 15:47:10 -07:00
TJ Holowaychuk
d115798d5b
ocd
2012-02-23 21:34:48 -08:00
TJ Holowaychuk
e2f43df5e9
refactored app.render()
2012-02-22 09:04:59 -08:00
Tj Holowaychuk
6518e746c1
removed require "qs" as its no longer used. Closes #1014
2012-02-16 08:17:59 -08:00
Tj Holowaychuk
2a40571118
Added DEBUG=express:application support
2012-02-09 13:29:21 -08:00
TJ Holowaychuk
ff92afa557
Added "json replacer" and "json spaces" settings. Closes #996 [credit to jed]
2012-02-07 03:30:34 -08:00
Tj Holowaychuk
c3c0fb95a8
backported fix from 2.x for app.all() del method
2012-02-06 10:12:59 -08:00
Peter Rekdal Sunde
fa51cb8d63
Typo
2012-01-19 02:14:30 +01:00
TJ Holowaychuk
edfe50e713
Removed app.is() support
2011-12-30 15:10:51 -08:00
TJ Holowaychuk
144a88b109
Removed app.match()
2011-12-28 12:09:58 -07:00
TJ Holowaychuk
6dac874ff4
renamed Router#_route() -> route()
2011-12-28 11:55:11 -07:00
TJ Holowaychuk
c0c1975da6
decouple Router options. Closes #941
2011-12-28 11:14:57 -07:00
Tj Holowaychuk
7d24c2ba40
Fixed app.set() with undefined
2011-12-15 09:00:39 -08:00
Tj Holowaychuk
c30c2f8d38
typo
2011-12-09 14:32:35 -08:00
Tj Holowaychuk
43295289bf
Removed app.redirect()
2011-12-06 16:04:06 -08:00
Tj Holowaychuk
17a831e32f
app.path()
2011-12-06 15:36:44 -08:00
Tj Holowaychuk
87b991c076
removed "root" setting
...
screw it, no one will understand anyway
2011-11-24 14:27:28 -08:00
Tj Holowaychuk
5d593f26af
.parent tests
2011-11-24 14:04:37 -08:00
Tj Holowaychuk
b6611c8a3b
Added: emit "mount" event on the app being mounted
2011-11-24 13:24:34 -08:00
Tj Holowaychuk
aab08d774b
Removed implementation of app.mounted(callback)
2011-11-24 13:20:10 -08:00
Tj Holowaychuk
321aa52384
Removed app.mounted(callback)
2011-11-24 13:19:53 -08:00
Tj Holowaychuk
1334a74ef1
misc refactoring
2011-11-24 12:50:19 -08:00
Tj Holowaychuk
6ae32fd596
docs
2011-11-24 12:22:59 -08:00
Tj Holowaychuk
4c316ba4ce
refactored init middleware into its own file
2011-11-24 12:14:12 -08:00
Tj Holowaychuk
9082e74971
Added app.listen() as a shortcut for http.createServer(app).listen()
2011-11-11 17:22:25 -08:00
Tj Holowaychuk
7a7d77e7bd
Removed toArray() util
2011-11-11 14:30:27 -08:00
Tj Holowaychuk
92c5284b80
fixed auto use(app.router)
2011-11-10 16:11:35 -08:00
Tj Holowaychuk
e27b224933
make sure req/res protos are app-specific
2011-11-10 11:31:38 -08:00
Tj Holowaychuk
d249868e07
no longer manipulate the req/res protos directly
2011-11-10 11:18:43 -08:00
Tj Holowaychuk
b9dee730a8
Fixed app.render() absolute path support
2011-11-10 08:22:42 -08:00
Tj Holowaychuk
66f8ca52d6
Added app.engine() tests
2011-11-08 20:14:53 -08:00
Tj Holowaychuk
2e22887f71
docs
2011-11-08 19:55:41 -08:00
Tj Holowaychuk
377056a33c
Removed "charset" option
2011-11-08 19:44:16 -08:00
Tj Holowaychuk
43d9f6ea17
tweak res.redirect() mount route logic
2011-11-08 18:59:40 -08:00
Tj Holowaychuk
0f2f3d4e29
Fixed res.clearCookie(), default path to "root" setting
2011-11-08 18:25:21 -08:00
Tj Holowaychuk
62257bce18
Added app.routes, replacing app.routes.all(). Closes #811
2011-10-14 17:51:23 -07:00
Tj Holowaychuk
0ed74aa68b
added an array of routes
2011-10-14 17:48:57 -07:00
Tj Holowaychuk
e0bd0d6470
Added app.get(setting). Closes #842
2011-10-14 17:37:23 -07:00
Tj Holowaychuk
965e1d63dc
added sync signature for app.locals.use()
2011-10-09 13:08:20 -07:00
Tj Holowaychuk
0f6ad43e91
app.locals.use(fn)
2011-10-09 12:54:15 -07:00
Tj Holowaychuk
8d804a6c4a
removed old app.locals()
2011-10-09 12:51:27 -07:00
Tj Holowaychuk
d4b08e9566
misc
2011-10-07 15:18:00 -07:00
Tj Holowaychuk
4ed92d50e0
misc refactoring
2011-10-07 15:12:24 -07:00
Tj Holowaychuk
8848004cb7
refactoring boot logic
2011-10-07 15:10:30 -07:00
Tj Holowaychuk
e1da383aed
new View
2011-10-07 14:51:06 -07:00
Tj Holowaychuk
6bcf29152f
misc refactoring
2011-10-07 14:25:09 -07:00
Tj Holowaychuk
8a38211bd9
re-implemented "view cache"
2011-10-07 14:16:05 -07:00
Tj Holowaychuk
cb2b9feb5f
docs
2011-10-07 14:13:13 -07:00
Tj Holowaychuk
c2d5d5619b
lookup callback
2011-10-07 14:12:37 -07:00
Tj Holowaychuk
76b7d6975f
app.lookup()
2011-10-07 14:11:08 -07:00
Tj Holowaychuk
7e9186d1ae
removed hints setting
2011-10-07 14:08:06 -07:00
Tj Holowaychuk
d1ce4c9923
req.query is always present
2011-10-07 14:04:59 -07:00
Tj Holowaychuk
0d0125fc29
removed union util
2011-10-07 13:50:59 -07:00
Tj Holowaychuk
98e2c0522f
merging res.locals
2011-10-07 13:50:31 -07:00
Tj Holowaychuk
294bc8c1d7
misc refactoring
2011-10-07 13:34:03 -07:00
Tj Holowaychuk
c40c54fbee
request-level render()
2011-10-07 13:27:43 -07:00
Tj Holowaychuk
cecbaf2efe
removed old view.js
2011-10-07 13:22:55 -07:00
Tj Holowaychuk
e90413243e
use app.engines instead of app.cache
2011-10-07 13:21:01 -07:00
Tj Holowaychuk
a9396efeaf
added app.register()
2011-10-07 13:19:29 -07:00
Tj Holowaychuk
d0585bd910
application.js
2011-10-07 13:10:15 -07:00