HTML template library - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

(Asking this in the context of neuron -- to allow users to customize their HTML/CSS to maximum extent possible)

TheMatten

Personally I would love HSX - but I'm not sure if that's realistic :big_smile:

TheMatten

Dhall sounds intereting - it's actual language, but still total and pure
Maybe if there was something like "DLX"

Sridhar Ratnakumar

@TheMatten HSX has to be embedded in Haskell source, no? Or can you read it from disk at runtime?

TheMatten

You could technically use hint for that - though that would mean carrying around GHC as a dependecy

Mats Rauhala

Would need some productizing though

TheMatten

Hmm, maybe it could be something as simple as file being treated as multiline string literal, where code could be added using interpolation?

TheMatten

Though I guess that would make global definitions in file complicated

TheMatten

Maybe that doesn't even matter - adding '' on both ends of file isn't very complicated :big_smile: