from emailer_lib.mjml import group, text
child = text("Hello World")
result = group(child)mjml.group
mjml.group(*args, attributes=None, content=None)Create an MJML <mj-group> 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
<mj-group>
Examples
With children:
With attributes:
result = group(attributes={"attr": "value"})With both:
result = group(child, attributes={"background-color": "yellow"})