The API of j2html would become much more type safe if every HTML element had each own representation class that extends either ContainerTag or EmptyTag. Each HTML element class could then have each own set of predefined HTML attributes.
Working with that kind of API would be much more comfortable, but it is quite a lot of work to implement it in j2html. Is there any chance to provide such API or maybe you are open for pull request?
The API of j2html would become much more type safe if every HTML element had each own representation class that extends either
ContainerTagorEmptyTag. Each HTML element class could then have each own set of predefined HTML attributes.Working with that kind of API would be much more comfortable, but it is quite a lot of work to implement it in j2html. Is there any chance to provide such API or maybe you are open for pull request?