Ghost/core/server/middleware
Hannah Wolfe 243b387063 Helper Proxy & single express-hbs instance (#8225)
refs #8126, #8221, #8223

 New 'Proxy' for all helper requires
- this is not currently enforced, but could be, much like apps
- the proxy object is HUGE
- changed date to use SafeString, this should have been there anyway
- use the proxy for all helpers, including those in apps 😁

 🎨 Single instance of hbs for theme + for errors
- we now have theme/engine instead of requiring express-hbs everywhere
- only error-handler still also requires express-hbs, this is so that we can render errors without extra crud
- TODO: remove the asset helper after #8126 IF it is not needed, or else remove the TODO

🎨 Cleanup visibility utils
🎨 Clean up the proxy a little bit
🚨 Unskip test as it now works!
🎨 Minor amends as per comments
2017-04-04 18:07:35 +02:00
..
api 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
validation 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
brute.js 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
cache-control.js deps: grunt-jscs@2.1.0 2015-10-12 19:21:16 +01:00
custom-redirects.js 🐛 fix usages of logError (#8138) 2017-03-13 19:47:09 +00:00
error-handler.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +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 chore(package): update uuid to version 3.0.0 (#7742) 2017-01-04 17:10:29 +01:00
maintenance.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
pretty-urls.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
serve-favicon.js 🐛 fix favicon path (#8190) 2017-03-21 11:44:39 +00:00
serve-shared-file.js 🔥 remove forceAdminSSL and urlSSL, add admin url (#7937) 2017-02-03 18:13:22 +00:00
static-theme.js New fully-loaded & validated activeTheme concept (#8146) 2017-03-13 21:13:17 +01:00
uncapitalise.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
url-redirects.js 🎹 re-work url redirects (#7956) 2017-02-10 11:42:18 +00:00