Repository navigation
Releases
Releases · robertz/boxlang-express-mvc
v0.3.0
- Flash:
event.getFlash()and aflashvariable in views, kept in the
BoxExpress session. this.prehandler_only/_except, the same forposthandlerand
aroundhandler, andaroundHandler( event, targetAction, eventArguments, rc, prc ).- Routes:
get(),post(),put(),patch(),delete(),group(),
toView(),toRedirect(),apiResources(), andresources()with a
pattern and a handler for nesting. - A POST with
_method=PUT,PATCHorDELETEin its body is routed
as that method._methodno longer appears inrc. - Event:
paramValue(),getOnly(),getExcept(),populateModel(),
isAjax(),getHTTPContent(). onMissingActionandonInvalidHTTPMethodon a handler.- Interceptors: an
interceptorssetting,event.announce()and
mvc.announce(). - Changed:
aroundHandler,onMissingActionand
onInvalidHTTPMethodare reserved names and can't be actions. examples/todouses flash for its messages and
this.prehandler_only;examples/starterusesget()andtoView().
v0.2.0
this.allowedMethodson a handler limits an action to the listed
HTTP methods on every route, the convention route included. A wrong
method gets a 405 with anAllowheader.- Changed: an action is now a public function whose first argument
is namedevent. Other public functions are no longer routable. - Changed:
relocate()throwsBoxExpressMvc.InvalidRelocation
for//hostand/\host, which a browser reads as another site. - Fixed:
buildLink()used a param name as a regular expression. examples/todoadds security headers, a rate limit and a cap on the
list; its Dockerfile pins the base image by digest.examples/starter
defaults toproduction.- CI: read-only token, no stored checkout credentials, actions and the
CommandBox image pinned; Dependabot keeps the pins current. examples/todo: a todo list with sessions, CSRF protection and a
Dockerfile.examples/starteris the formerexamples/app.- A GitHub Actions workflow runs the specs on every push.
examples/todoinstallsbx-esapiand uses
encodeForHTMLAttribute()in attributes. The docs say to install it
in every app.
v0.1.0
- First version:
boxExpressMvc(), handlers with( event, rc, prc )
actions,preHandler/postHandler, the route DSL (route,
withAction,resources, named routes, the convention route),.bxm
views and layouts, and handler wiring from aservicesstruct or a
WireBox injector.