diff options
author | Markus Wüstenberg | 2020-11-02 10:03:05 +0100 |
---|---|---|
committer | GitHub | 2020-11-02 10:03:05 +0100 |
commit | 6c8f0c235287edf7252fe239d4c9beb258c6ff01 (patch) | |
tree | ae1245a8e1491f5f369e8d9ef2517148d9774130 /components/documents.go | |
parent | 92ba5904c1645e6572f5ff1b9d0e0ec629e1afb9 (diff) | |
download | gomponents-6c8f0c235287edf7252fe239d4c9beb258c6ff01.tar.lz gomponents-6c8f0c235287edf7252fe239d4c9beb258c6ff01.tar.zst gomponents-6c8f0c235287edf7252fe239d4c9beb258c6ff01.zip |
Render to Writer instead of string (#39)
The Render function has been changed to take a `Writer` instead of returning a string. This makes it possible to generate documents without having the whole content in memory. This also removes the `gomponents.Write` function, which is now redundant. Furthermore, the `el.Document` function has been changed to only take one child, as multiple children never make sense for it. (It's not even a child, more a sibling.)
Diffstat (limited to 'components/documents.go')
0 files changed, 0 insertions, 0 deletions