Skip to content

Allow direct attributes giving on a field #74

Open
@aminya

Description

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:

tr.th # regular content
tr.th["class"] # attribute

Metadata

Assignees

No one assigned

    Labels

    decisionNeed to decide about thisenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions