Routable
, controllers act as plugins when called. This pseudo-plugin will wire all your routes for you.Expose
annotation:as
and allowNull
. See, request parameters are mapped to function parameters on each handler. If a parameter is null
, an error will be thrown. To prevent this, you can pass its name to allowNull
.as
. This allows you to specify a custom name for a controller class or action. ResponseContext
contains a method, redirectToAction
that can redirect to a controller action.as
, then controllers and actions will be available by their names in code. Reflection is cool, huh?RequestContext
or ResponseContext
as a parameter, and it will be passed to the function.