tipsy / j2html

Java to HTML generator. Enjoy typesafe HTML generation.

Home Page:https://j2html.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling render with io.Writer

abius opened this issue · comments

commented

I'm requesting a feature here, that is to have an method render(java.io.Writer). When creating larger DOM's constructing a larger string might become a hassle, and if you plan to write the resulting string somewhere writing in a writer directly will be a lot faster. The best example of that would be the creation of an website, where creating the string for the whole DOM should be of magnitudes slower than writing it directly.
I suggest creating a method render(java.lang.Appendable) because this covers Writers as well as StringBuilder.

commented

Could you create a PR for this?