Error Templates
By default Lazo ships with a few standard error
templates. Lazo will
render the template name for the associated error code. If you would like custom error templates
then you can them to your application’s app/views
directory using the error code for the filename
plus the extension “hbs”, e.g., the file name for internal server errors would be “500.hbs”. Lazo
uses Handlebars to render error templates. The following properties
are available in an error template's rendering context.
-
statusCode
the error code for the error -
error
the type of error -
message
the error message
Overview
Life Cycles
Getting Started
Development Tools
Application Structure
application.js
Configuration
Configuration Providers
Logging
Module Loader
Assets
Combo Handling
Components
Models and Collections
Views
Templates
Layouts
Imports
Links
Request Filters
Crumb
Server Setup
Error Templates
Page Template
Server Utilities
Node Modules
Contributing