all repos — gomponents @ 3a9a1fd26540ddd0299771a729740cdd88239dde

HTML components in pure Go

Rename and document fork

Alan Pearce
commit

3a9a1fd26540ddd0299771a729740cdd88239dde

parent

5eae1eef0f0a090ae569a23c0c52db356a109cfc

1 file changed, 9 insertions(+), 4 deletions(-)

changed files
M internal/examples/app/html/about.gointernal/examples/app/html/about.go
@@ -3,14 +3,15 @@
import ( "time" - . "maragu.dev/gomponents" - . "maragu.dev/gomponents/html" + . "go.alanpearce.eu/gomponents" + . "go.alanpearce.eu/gomponents/html" ) func AboutPage() Node { now := time.Now() - return page("About", + return page( + "About", H1(Text("About")), P(Textf("Built with gomponents and rendered at %v.", now.Format(time.TimeOnly))),
@@ -20,6 +21,10 @@ If(now.Second()%2 == 0, Text("It's an even second!")),
If(now.Second()%2 != 0, Text("It's an odd second!")), ), - Img(Class("max-w-sm"), Src("https://www.gomponents.com/images/logo.png"), Alt("gomponents logo")), + Img( + Class("max-w-sm"), + Src("https://www.gomponents.com/images/logo.png"), + Alt("gomponents logo"), + ), ) }