mjml.raw

mjml.raw(content=None, attributes=None)

Create an MJML <mj-raw> tag.

This is an ending tag that accepts text/HTML content but not MJML children.

Parameters

content : Optional[str] = None

Text or HTML content for the tag

attributes : Optional[TagAttrs] = None

Optional dict of tag attributes

Returns

: MJMLTag

MJMLTag object representing <mj-raw>

Examples

With content:

from emailer_lib.mjml import raw

result = raw("Hello")

With attributes and content:

result = raw("Hello", attributes={"background-color": "red"})