0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/unit
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
..
adapters Moved isLocalFile fn to storage utils (#8985) 2017-11-09 11:11:54 +01:00
api Support for attribute-based permissions (#9025) 2017-09-26 18:06:14 +02:00
apps Highlighted routes, controllers & renderers 2017-11-08 09:45:12 +00:00
auth 🐛 Fixed error for password authentication with Bearer Token (#9227) 2017-11-09 14:11:29 +00:00
config
controllers Introduced renderer to DRY up controllers (#9235) 2017-11-10 12:44:29 +00:00
data/importer
helpers Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
mail Improved log output for welcome email error (#9016) 2017-09-19 14:24:20 +01:00
metadata 🐛 Fixed author helper not returning the correct url (#9102) 2017-10-05 13:50:55 +02:00
middleware Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
models/base
models_plugins Support filtering based on primary_tag (#9124) 2017-10-10 14:07:44 +02:00
permissions Permissions: minor refactors (#9104) 2017-10-05 21:01:34 +02:00
services RSS service + controller improved for consistency (#9233) 2017-11-10 07:36:39 +00:00
settings 🐛 Theme name is point number (#9184) 2017-10-26 13:54:18 +02:00
sitemap
themes Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
utils Feature: {{reading_time}} theme helper (#9217) 2017-11-06 18:40:07 +00:00
admin_spec.js
apps_filters_spec.js
errors_spec.js
exporter_spec.js
ghost_sdk_spec.js 🐛 Fixed api url for the ghost sdk (#9013) 2017-09-18 16:28:22 +01:00
migration_fixture_utils_spec.js Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
migration_spec.js Custom post templates (#9073) 2017-10-10 13:36:35 +01:00
server_utils_spec.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
social-urls_spec.js
utils_pipeline_spec.js
validation_spec.js Improved password validation rules (#9171) 2017-10-26 11:01:24 +01:00