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