R-a-dio / valkyrie

R/a/dio software stack
https://r-a-d.io
MIT License
5 stars 3 forks source link

templates: implement buffering #72

Closed Wessie closed 10 months ago

Wessie commented 4 years ago

Templates currently write directly to the writer given. But this means that if an error occurs a half-written template is now already on its way to the client. We should buffer the output in memory until completion and then write it out