SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
714 stars 108 forks source link

Proper HTML templating #148

Closed Immortalin closed 5 years ago

Immortalin commented 5 years ago

Pure f sharp code makes working with designers etc. difficult Something like Razor pages/ERB would be nice

Krzysztof-Cieslak commented 5 years ago

Giraffe supports Razor and dotLiquid templates - https://github.com/giraffe-fsharp/Giraffe/blob/master/DOCUMENTATION.md#additional-features. And as Saturn is built on top of Giraffe, you can easily plug it in - just add NuGet package, and use (for example) dotLiquid function in your handlers/controllers.