Template After effect

Yes, you can export a timeline with the plugin bodymovin(free) - The plugin exports files to be used by a player called lottie, and that can be embeded in a html template and controlled with javascript/casparcg -
I made a demo template in another post, there is also the ae file.
Its not everything in After effects that works in the plugin, like particles - but you can always export it as a png sequence reimport and then export that with bodymovin. There are other ways to do the controlling javascript, just search the forum after bodymovin or lottie

You can get the plugin here: Adobe Exchange
Lottie and after effects:
Lottie Docs

I hope that helps!