We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It helps to avoid creating new struct if the field is just a text and some attributes. Attributes can be given in a Tuple with the xml name of them:
@aml mutable struct tr "~" th::String, "~", missing, ("class", "style") end
Two commas were used because the first one is the place holder for the value checking function.
For accessing the Dict after creation, one should be able to do this:
Dict
tr.th # regular content tr.th["class"] # attribute
The text was updated successfully, but these errors were encountered:
Thinking more about this:
This is just defining a new type in 1 line, while it can be split easily (not sure how much value we get from this quicker syntax)
What should be given in the Tuple:
just giving the xml name? and assuming only strings?
("class", "style")
(x::String, att"class", y::Int64, att"style")
tr( th = th("good", class = "this", style = "that"))
Sorry, something went wrong.
No branches or pull requests
It helps to avoid creating new struct if the field is just a text and some attributes.
Attributes can be given in a Tuple with the xml name of them:
Two commas were used because the first one is the place holder for the value checking function.
For accessing the
Dict
after creation, one should be able to do this:The text was updated successfully, but these errors were encountered: