Package io.micronaut.email.template
Class TemplateBody<T>
java.lang.Object
io.micronaut.email.template.TemplateBody<T>
- Type Parameters:
T
- HTML model
- All Implemented Interfaces:
Body
Email HTML Body backed by a template.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorDescriptionTemplateBody
(@NonNull BodyType bodyType, @NonNull io.micronaut.views.ModelAndView<T> modelAndView) TemplateBody
(@NonNull BodyType bodyType, @Nullable String view, T model) TemplateBody
(@NonNull io.micronaut.views.ModelAndView<T> modelAndView) TemplateBody
(@Nullable String view, T model) Body HTML with view name and model. -
Method Summary
-
Constructor Details
-
TemplateBody
Body HTML with view name and model.- Parameters:
view
- view name to be renderedmodel
- Model to be rendered against the view
-
TemplateBody
- Parameters:
modelAndView
- Emails Template's name and model for html
-
TemplateBody
public TemplateBody(@NonNull @NonNull BodyType bodyType, @Nullable @Nullable String view, @Nullable T model) - Parameters:
view
- View name to be renderedmodel
- Model to be rendered against the viewbodyType
- The content type of the template
-
TemplateBody
public TemplateBody(@NonNull @NonNull BodyType bodyType, @NonNull @NonNull io.micronaut.views.ModelAndView<T> modelAndView) - Parameters:
modelAndView
- Emails Template's name and model for htmlbodyType
- The content type of the template
-
-
Method Details