j2html icon indicating copy to clipboard operation
j2html copied to clipboard

Add parameter name reflection

Open tipsy opened this issue 8 years ago • 0 comments

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")
);

tipsy avatar Jan 08 '18 20:01 tipsy