You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to see the actual template filled with data, it would be nice to provided an REST endpoint like GET /templates/user-registration?userId=2711. Maybe for other team members (or PO/PM), that are not familiar with the Quarkus World (or even Java) but want to give feedback or see the template filled with data.
I know this is working for plain Qute Template Instances. See following example:
@CheckedTemplate
static class Templates {
public static native TemplateInstance hello();
}
@GET
@Consumes(MediaType.TEXT_HTML)
public TemplateInstance testMail() {
return Templates.hello();
}
It's not the same as for Mail Template Instances, because the underlying TemplateInstance is private and not exposed via any method.
Description
We are sending emails based on a Qute Template.
In order to see the actual template filled with data, it would be nice to provided an REST endpoint like
GET /templates/user-registration?userId=2711
. Maybe for other team members (or PO/PM), that are not familiar with the Quarkus World (or even Java) but want to give feedback or see the template filled with data.I know this is working for plain Qute Template Instances. See following example:
It's not the same as for Mail Template Instances, because the underlying TemplateInstance is private and not exposed via any method.
See also following discussion:
https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Convert.20.20MailTemplateInstance.20to.20TemplateInstance
Implementation ideas
See: https://github.com/quarkusio/quarkus/blob/main/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateInstanceImpl.java#L23
Maybe just add a getter for the underlying template instance.
The text was updated successfully, but these errors were encountered: