Ghost/core/server/helpers
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
..
tpl New buttons 🎨 (#8007) 2017-02-16 19:52:32 +00:00
asset.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
author.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
body_class.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
content.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
date.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
encode.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
excerpt.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
facebook_url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
foreach.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
get.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
ghost_foot.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
ghost_head.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
has.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
image.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
index.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
is.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
meta_description.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
meta_title.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
navigation.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
page_url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
pagination.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
plural.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
post_class.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
prev_next.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
proxy.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
register.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
tags.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
template.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
title.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
twitter_url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00