PurpleKingdomGames / tyrian

Elm-inspired Scala UI library.
https://tyrian.indigoengine.io/
MIT License
346 stars 26 forks source link

SSR Header rendering #231

Closed davesmith00000 closed 8 months ago

davesmith00000 commented 10 months ago

ScalaTags does this cute thing where you can declare the doc type with a simple string:

"<!DOCTYPE html>" + html(...)

Whereas Tyrian just does this rubbish thing where you say Tyrian.render(true, HomePage.page) with the flag means "include the doc type". Their way is better, we should do something similar, although I think there will be some subtle complexities, because what is that "add" making?

davesmith00000 commented 8 months ago

Done, will be in the next release.