Skip to content

Render to io.Writer instead of returning string

Pre-release
Pre-release

Choose a tag to compare

@markuswustenberg markuswustenberg released this 02 Nov 09:18
6c8f0c2

⚠️ Breaking: To make it easier to keep memory requirements low for servers that potentially render a lot of web pages, the Render function has been changed from Render() string to Render(io.Writer) error. This is obviously a breaking change, but the upgrade should be pretty simple. Just use the Render function directly instead of using the (now removed) Write function.