-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
Description
There is this method in TagCreator
:
public static String document(HtmlTag htmlTag) {
return document().render() + htmlTag.render();
}
This returns a String by calling render()
, thus it prevents using the new render possibilities introduced with #179
A better approach would be if there is a Document
class that implements Renderable
and that handles the correct rendering.
Apparently this would break code written for j2html 1.*, so it is something we should consider for a 2.* release.
ritzow