0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server
Christopher Giffard 48b75fa396 Initial 404 Error Handling Support
Fixes #356

- Adds new generic methods for handling errors to errorHandling.js
- Initialises generic methods as middleware
- Created error.hbs view in admin
- Error handler searches for error.hbs view file in user theme folder
  and renders it if available, otherwise lets the error fall through
  to express.

- We *could* change the final behaviour to render a default ghost
  template should the user template be missing
- Because it currently isn't possible to require(ghost) in errorHandling.js,
  it was necessary to duplicate some aspects of the ghost path init code
  inside errorhandling.js. This should be cleaned up and moved back
  into ghost.js when possible.
2013-09-17 20:56:05 +10:00
..
controllers Populating admin email with user signup email 2013-09-17 03:08:36 +01:00
data Merge pull request #752 from sebgie/settingsapi 2013-09-15 09:53:23 -07:00
helpers Adds slashes to urls 2013-09-17 02:39:55 +01:00
models Adding extra paths to not allow slugs for 2013-09-17 01:48:56 +01:00
permissions Edit Post Permissions 2013-08-18 12:28:05 -05:00
plugins Improving the use of paths in Ghost 2013-08-12 15:37:23 +01:00
views Initial 404 Error Handling Support 2013-09-17 20:56:05 +10:00
api.js Add setting filter 2013-09-15 18:04:01 +02:00
errorHandling.js Initial 404 Error Handling Support 2013-09-17 20:56:05 +10:00
mail.js Mail documentation link is clickable 2013-09-16 18:34:20 +01:00
require-tree.js JSLint fixes for new version 2013-07-31 09:21:22 +01:00