Class MjAttributes
java.lang.Object
dev.jcputney.mjml.component.BaseComponent
dev.jcputney.mjml.component.HeadComponent
dev.jcputney.mjml.component.head.MjAttributes
Processes mj-attributes to set default attribute values. Children can be mj-all (applies to all
tags), mj-class (named classes), or specific tag elements (e.g., mj-text, mj-section).
-
Field Summary
Fields inherited from class BaseComponent
globalContext, node, renderContext -
Constructor Summary
ConstructorsConstructorDescriptionMjAttributes(MjmlNode node, GlobalContext globalContext, RenderContext renderContext, ComponentRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionReturns the MJML tag name this component handles.voidprocess()Processes this head component, updating the global context with extracted metadata (fonts, styles, attributes, etc.).Methods inherited from class HeadComponent
getDefaultAttributesMethods inherited from class BaseComponent
getAttribute, getAttribute, getNode
-
Constructor Details
-
MjAttributes
public MjAttributes(MjmlNode node, GlobalContext globalContext, RenderContext renderContext, ComponentRegistry registry)
-
-
Method Details
-
getTagName
Description copied from class:BaseComponentReturns the MJML tag name this component handles.- Specified by:
getTagNamein classBaseComponent- Returns:
- the MJML tag name
-
process
public void process()Description copied from class:HeadComponentProcesses this head component, updating the global context with extracted metadata (fonts, styles, attributes, etc.).- Specified by:
processin classHeadComponent
-