There should be a way to create controllers in scope of a block/snippet.
https://github.com/getkirby/ideas/issues/585