encoding/html package to generate html markup programmatically

71 views
Skip to first unread message

atd...@gmail.com

unread,
Mar 14, 2021, 7:36:52 PM3/14/21
to golang-nuts
Hi,

I am currently thinking about implementing SSR for a Go client-side framework.
Not only that but I would like to be able to create static html from the same code I use to create dynamic  wasm-based webapps.

I was trying to find a package that would enable me to generate an html document but seems like none exists.

Do you think it is possible to use encoding/xml to create an xhtml document?


That would allow me to create something like MarkupPy that would replace js DOM created element by html element.

Michael Ellis

unread,
Mar 15, 2021, 1:52:58 PM3/15/21
to golang-nuts
goht might be what you're looking for.

atd...@gmail.com

unread,
Mar 15, 2021, 6:13:42 PM3/15/21
to golang-nuts
Oh, you might be my savior ! :)
I starred it and am going to look into it. Looks quite promising!

Reply all
Reply to author
Forward
0 new messages