Ghost/core/server/controllers/frontend
Katharina Irrgang d87fbeca49 🐛 Fixed error handling for html response (#9280)
refs https://github.com/TryGhost/Team/issues/41

- if you add invalid handlebars logic e.g. {{if condition condition}}, handlebars throws an error
- in case of having invalid hbs in an amp page, the amp component throwed another syntax error (which is fixed in this PR)
- furthermore the `setTemplate` helper function had a logic bug, which did not handle errors correctly
  - if there is an error and a template is set (e.g. amp), we have to still render the error page and not the amp page
- this fix only ensures that the error handling is correct, we still see the error of the "ugly" handlebars message
  - e.g. [amp.hbs] Cannot read property 'includeZero' of undefined
  - but no longer -> Cannot read property 'html' of undefined (which was a syntax error in Ghost)
2017-11-28 12:00:43 +00:00
..
context.js RSS service + controller improved for consistency (#9233) 2017-11-10 07:36:39 +00:00
error.js Split helper functions from frontend controller 2015-10-22 18:46:58 +01:00
fetch-data.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
format-response.js Renamed single / post -> entry 2017-11-08 10:07:52 +00:00
post-lookup.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
render-channel.js Introduced renderer to DRY up controllers (#9235) 2017-11-10 12:44:29 +00:00
render-entry.js Introduced renderer to DRY up controllers (#9235) 2017-11-10 12:44:29 +00:00
renderer.js Introduced renderer to DRY up controllers (#9235) 2017-11-10 12:44:29 +00:00
secure.js Split helper functions from frontend controller 2015-10-22 18:46:58 +01:00
templates.js 🐛 Fixed error handling for html response (#9280) 2017-11-28 12:00:43 +00:00