You can make use of the JavaScript ecosystem. React is a nice was to structure code. There are a tonne of modules
available on npm, etc. If and when you do want to build client elements you can reuse parts of your code.
That said, I'm not aware of anyone doing this at scale. I know the BBC were considering it. My company will be using it to product AMP pages from our JS stack.
That said, I'm not aware of anyone doing this at scale. I know the BBC were considering it. My company will be using it to product AMP pages from our JS stack.