mjml.html_attributes
mjml.html_attributes(*args, attributes=None, content=None)Create an MJML <mj-html-attributes> tag.
Parameters
*args : TagChild = ()-
Children (MJMLTag objects)
attributes : Optional[TagAttrs] = None-
Optional dict of tag attributes
content : Optional[str] = None-
Optional text content for the tag
Returns
: MJMLTag-
MJMLTag object representing
Examples
With children: html_attributes(child1, child2)
With attributes: html_attributes(attributes={“attr”: “value”})
With both: html_attributes(child1, child2, attributes={“attr”: “value”})