0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/unit/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
..
test_tpl
asset_spec.js Split css server templates (#8234) 2017-04-04 10:06:38 +01:00
author_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
body_class_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
content_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
date_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
encode_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
excerpt_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
facebook_url_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
foreach_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
get_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
ghost_foot_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
ghost_head_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
has_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
image_spec.js 🎨 🚑 do not use testurl.com in tests (#8254) 2017-04-03 16:29:36 +01:00
is_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
meta_description_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
meta_title_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
navigation_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
next_post_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
page_url_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
pagination_spec.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
plural_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
post_class_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
prev_post_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
tags_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
title_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
twitter_url_spec.js 🔥 🎨 Cleanup & simplify theme helpers (#8223) 2017-03-23 20:00:58 +01:00
url_spec.js 🎨 🚑 do not use testurl.com in tests (#8254) 2017-04-03 16:29:36 +01:00