Skip to content

Add parameter name reflection#99

Open
tipsy wants to merge 1 commit intomasterfrom
param-name-reflection
Open

Add parameter name reflection#99
tipsy wants to merge 1 commit intomasterfrom
param-name-reflection

Conversation

@tipsy
Copy link
Owner

@tipsy tipsy commented Jan 8, 2018

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 tipsy force-pushed the param-name-reflection branch from 1789ba0 to 92aa331 Compare January 10, 2018 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant