Issue: x/net/html Node and attributes constructor function

41 views
Skip to first unread message

atd...@gmail.com

unread,
Jul 12, 2021, 1:38:08 PM7/12/21
to golang-nuts
Just wondering if people would feel it worthy to have COnstructor functions to create html.Nodes, attributes, and set attributes on html.Nodes.

I'm writing some kind of metaframework targeting the web and mobile (think flutter for Go) and basically finished the web target via wasm.

But I'd like to convert the app tree into an html node tree for static generation of pages (think isomorphic app server or whatever the terminology frontend dev use nowadays)

After having looked at different solutions, x/net/html seems simple enough albeit a bit lacking.

Maybe it is by design for people to build upon it though.

So, do I prepare PRs or just build on it for myself?

atd...@gmail.com

unread,
Jul 12, 2021, 1:41:10 PM7/12/21
to golang-nuts
Like func NewNode(...) and func NewAttr(...)

Also a SetAttr on Nodes
Reply all
Reply to author
Forward
0 new messages