Class TemplateBody<T>
java.lang.Object
io.micronaut.email.template.TemplateBody<T>
- Type Parameters:
T- HTML model
- All Implemented Interfaces:
Body
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateBody(@NonNull BodyType bodyType, @NonNull io.micronaut.views.ModelAndView<T> modelAndView) TemplateBody(@NonNull BodyType bodyType, @Nullable String view, @Nullable T model) TemplateBody(@NonNull io.micronaut.views.ModelAndView<T> modelAndView) TemplateBody(@Nullable String view, @Nullable T model) Body HTML with view name and model. -
Method Summary
-
Constructor Details
-
TemplateBody
-
TemplateBody
- Parameters:
modelAndView- Emails Template's name and model for html
-
TemplateBody
-
TemplateBody
-
-
Method Details
-
getModelAndView
- Returns:
- The model and view
-
setBody
- Parameters:
body- The result of the view being rendered
-
get
-