0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/apps
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
..
amp Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
default-cards 📦 Card-Rename (#8218) 2017-03-24 10:03:33 +00:00
private-blogging Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
subscribers Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
dependencies.js Replace fs.exists (deprecated) with fs.stat 2015-03-17 11:49:43 -07:00
index.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
loader.js 🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling) 2016-09-20 15:59:34 +01:00
permissions.js 🎨 Collect & simplify package utils (#8080) 2017-03-01 14:09:31 +01:00
proxy.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
sandbox.js 🔥 remove postgres support 2016-09-20 15:59:34 +01:00