RingoJS

Module 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)

Parameters

null next
null app