Maven dependency
To experience the joy of generating HTML with a Java HTML builder, add the j2html dependency to your POM:
<dependency>
    <groupId>com.j2html</groupId>
    <artifactId>j2html</artifactId>
    <version>1.6.0</version>
</dependency>
Steps for upgrading
From 1.4.0 to 1.5.0
- Change return types from Tag,ContainerTagorEmptyTagto the specific tag being returned.
- Change missing method calls on tags, such as withRole("value")to.attr("role", "value").
- Method parameters of Tag,ContainerTagorEmptyTagshould have a wildcard (<?>) added, or be changed to a specific tag.
- Replace ambiguous method references like each(list, TagCreator::li)with lambdas such aseach(list, str -> li(str)).
Clone the repo on GitHub
Please clone and/or fork the repo on GitHub, make changes, and create pull requests! We will go through pull requests every sunday, so don't be shy.