Ghost/core/server/middleware
Hannah Wolfe 98f5ae00fc
Introduced renderer to DRY up controllers (#9235)
refs #5091, #9192

- Renderer figures out templates, contexts, and does a render call
- Templating is now handled with a single function
- Context call is made in the renderer

Note:  to make this work, all controllers now define a little bit of config, currently stored in res._route. (That's a totally temporary location, as is res._template... when a sensible naming convention reveals itself I'll get rid of the weird _). This exposes a type and for custom routes a template name & default.
2017-11-10 12:44:29 +00:00
..
api Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
validation Dumped icojs and use image-size for .ico (#8888) 2017-08-17 17:44:05 +01:00
admin-redirects.js Move admin redirects out of site router 2017-11-08 09:45:34 +00:00
brute.js 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
cache-control.js Rename blog -> site 2017-10-26 18:09:56 +01:00
custom-redirects.js Rename blog -> site 2017-10-26 18:09:56 +01:00
error-handler.js Introduced renderer to DRY up controllers (#9235) 2017-11-10 12:44:29 +00:00
frontend-client.js Moved fetching client out of our ghost_head helper (#9180) 2017-10-26 12:03:53 +02:00
ghost-locals.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
labs.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
log-request.js Added request id header (#9122) 2017-10-09 14:48:32 +02:00
maintenance.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
pretty-urls.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
serve-favicon.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
serve-public-file.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
static-theme.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
uncapitalise.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
url-redirects.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00