Module stick/middleware/notfound
Middleware for simple Not-Found pages.
By default, resource stick/middleware/notfound.html is used as page template.
This can be set through the app.notfound.template property.
template the notfound page template (string)
Example
app.configure("notfound");
app.notfound.template = "templates/404.html";
Functions
- middleware(next, app)
middleware (next, app)
Stick middleware for simple 404-Not-Found pages.
Parameters
| Function | next | the wrapped middleware chain |
| Object | app | the Stick Application object |
Returns
| Function | a JSGI middleware function |