all repos — gomponents @ e61fd62eb0903e1290e831d17ae5935297ab2ed1

HTML components in pure Go

implement io.WriterTo in built-in Node types

Alan Pearce
commit

e61fd62eb0903e1290e831d17ae5935297ab2ed1

parent

05e8f19a1e99691c807bc060e2e1656de298e842

1 file changed, 3 insertions(+), 1 deletion(-)

changed files
M README.mdREADME.md
@@ -23,6 +23,8 @@ ## Fork changes
- `MapWithIndex` and `MapMap` for mapping over slices and maps respectively - `If` and `Iff` take an extra argument to render a fallback component when the condition is false +- Built-in `Node` implementations also implement `io.WriterTo` + - Users of `NodeFunc` can use `NodeWriterFunc` to keep compatibility ## Features
@@ -41,7 +43,7 @@ - `Raw` and `Rawf` for inserting raw strings,
- `Map` for mapping data to components and `Group` for grouping components, - and `If`/`Iff` for conditional rendering. - No external dependencies -- Mature and stable, no breaking changes +- ~~Mature and stable, no breaking changes~~ ## Usage