0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/unit/controllers/frontend
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
..
context_spec.js RSS service + controller improved for consistency (#9233) 2017-11-10 07:36:39 +00:00
error_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
fetch-data_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
format-response_spec.js Renamed single / post -> entry 2017-11-08 10:07:52 +00:00
post-lookup_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
templates_spec.js Introduced renderer to DRY up controllers (#9235) 2017-11-10 12:44:29 +00:00