Back to topic list

Brick processors

Brick processors opens enduro's internal processes to bricks/plugins. The idea is whenever you need to add funcionality to enduro, you just add a processor. You can add multiple processors they will be executed serially with first-registered-first-processed basis.


enduro.api.brick_processors.add_processor('cms_context_processor', function (cms_context) {
    # modify cms_context and return promise

List of processors

  • cms_context_processor - executes each time context is retrieved and allows you to modify context before rendering. Bear in mind, the context will be modified on the fly, and modifications will not be saved as it is with abstractors.

If you are building a brick and enduro doesn't offer processor for what you need, feel free to open a ticket, pullrequest or reach out at gitter.

Back to topic list

Shout out to pexels and freepik