There should be a way to create controllers in scope of a block/snippet.

A plugin about it
https://github.com/lukaskleinschmidt/kirby-snippet-controller

Can be achieved now via a custom Snippet core component: https://getkirby.com/docs/quicktips/snippet-controllers
