public interface WebCmsComponentModelRenderer<T extends WebCmsComponentModel>
WebCmsComponentModel in a Thymeleaf template.
The WebCmsComponentModelViewElementModelWriter will retrieve all WebCmsComponentModelRenderer
beans and find the appropriate one when rendering a particular component model.
Implementations can be ordered as the first renderer that supports a component model
will be used to render it.ThymeleafModelBuilder| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(WebCmsComponentModel componentModel)
Can this renderer write this component model?
|
void |
writeComponent(T component,
com.foreach.across.modules.web.thymeleaf.ThymeleafModelBuilder model)
Build the Thymeleaf model for the
WebCmsComponentModel. |
boolean supports(WebCmsComponentModel componentModel)
componentModel - to rendervoid writeComponent(T component, com.foreach.across.modules.web.thymeleaf.ThymeleafModelBuilder model)
WebCmsComponentModel.component - to rendermodel - to add the output instructions toCopyright © 2020. All rights reserved.