github maragudk/gomponents v0.20.0
Add Rawf, remove some useless components

latest releases: v1.3.0, v1.2.0, v1.1.0...
pre-release3 years ago

⚠️ BREAKING: This release removes the high-level helper components InputHidden, LinkStylesheet, and LinkPreload that no-one was using, including myself. If anyone needs them back, here they are:

func InputHidden(name, value string, children ...g.Node) g.Node {
 	return Input(Type("hidden"), Name(name), Value(value), g.Group(children))
}

func LinkStylesheet(href string, children ...g.Node) g.Node {
	return Link(Rel("stylesheet"), Href(href), g.Group(children))
}

func LinkPreload(href, as string, children ...g.Node) g.Node {
	return Link(Rel("preload"), Href(href), As(as), g.Group(children))
}

This release also adds a new Rawf function, that is like Raw but interpolates the given string like Textf. Use with care.

Also, added an EncType html attribute component.

Don't miss a new gomponents release

NewReleases is sending notifications on new releases.