Class MustacheServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MustacheServlet extends ViewServlet
Standalone servlet companion of the MustacheMixin mixin.

Mounts as a sibling top-level servlet at /mustache/* and renders raw Mustache templates by delegating to a shared MustacheDispatcher worker — the same flavor-neutral RawTemplateDispatcher implementation the mixin and child flavors hold, so the forms cannot drift.

Whereas the MustacheMixin mixin pins its op at /mustache/* for composition into a host at /, this companion declares the mount at the class level (@Rest(paths="/mustache/*")) and inherits the /* op from ViewServlet.

See Also:
Since:
10.0.0