j2html
j2html copied to clipboard
Add parameter name reflection
Allows for writing attribute-names as lambda-params:
link().withAttrs(rel-> "stylesheet", href -> "/styles.css");
form().withAttrs(method -> "post", action -> "/form-path").with(
input().withAttrs(name -> "email", type -> "email"),
input().withAttrs(name -> "password", type -> "password")
);