Edit this topic

Widget route handler

: request

: widgets

: route-handler

: /modules/core/widgets/services/widget-route-handler.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/widgets/services/widget-route-handler.js


A route handler that determines what widgets to render for this request.

Kind: global function

widgetRouteHandler.handle(context, next)

Calls into layer stores and evaluates their rules in context, in order to determine what layers should be active for the current request. The widgets in those layers are then promised to be rendered.

Kind: instance method of WidgetRouteHandler

Param Type Description
context object The context.
next function The callback.