The Haskell IHP framework uses this approach which they call Server-Side Components:
https://ihp.digitallyinduced.com/Guide/server-side-components.html
The Haskell IHP framework uses this approach which they call Server-Side Components:
https://ihp.digitallyinduced.com/Guide/server-side-components.html