The only possible way to do it is to render a controller in custom tag template. There should be a more simple and flexible solution.
We should allow Developers to configure for each Custom Tag (or Style for that matter) either a controller or renderer which will take over the responsibility of rendering template. Depending on overhead it might be something lighter than fully-featured Symfony controller, but that needs to be discovered during development unfortunately.
Alternative solution for renderer - TBD.