Releases: HttpErrorPages/HttpErrorPages
Releases · HttpErrorPages/HttpErrorPages
Features, Features + Refactored the whole codebase
This release in not backward compatible - custom ejs templates as well as koa+express requires minimal manual adjustments!
- Added: template support for
pagetitle
(automatically set if not defined) - Added: option to set the pagetitle directly via
payload.pagetitle
(koa+expressjs) - Added: filter function to dynamically manipulate the errordata object (koa+expressjs)
- Added: support for additional variables/payloads
- Added: support for placeholders to static page generator
- Added: iso-639-1
language
attribute (derived from page lang) - Added: error/exception object available via
error
(koa+expressjs) - Added:
onError
callback as debug error handler (not to be used in production) - Changed: moved
footer
content intopayload
object - Changed: all variables within the
ejs
template are only accessible viavars
object
Gulp4 compatibility
v2.0.1 release
koa.js support
- Added koa support
- Added support for multiple http frameworks
- Changed: express.js error handler is encapsulated within the
express()
function - Changed: moved middleware example to
examples/
New Generator/Build System/Middleware
- New Generator/Build System: EJS (templates), SCSS (styles) and GULP (build) are used as a replacement of the historical php/bash/ant/less setup.
- New express.js integration/middleware (full asynchronous operation)
- JSON based page definitions including i18n support
- Option to use custom styles
- Option to use custom template
- Changed: middleware API (express.js)
- Changed: generator script is based on javascript
Minor Bugfix; Semantic Versioning
- Bugfix: Restored NGINX Configuration from 0331dac
- Added: Semantic Versioning
Prebuild Packages, External Configuration File
- Added: ANT based build file
- Added: Configuration file
config.ini
- Added: Prebuild Packages (includes all generated html file)
- Changed the directory structure
- Demo Pages are hosted via GitHub Pages (located within the
docs/
dir)