The goal of this simple extension is to expose Qute templates located in the src/main/resource/templates
directory via HTTP. Automatically, no controllers needed. For example, the template src/main/resource/templates/foo.html
will be served from the paths /qsp/foo
and /qsp/foo.html
by default.
In a template you can access:
@Named
CDI beans; similar to EL; e.g.{cdi:myBean.findItems()}
- static members of a class annotated with
@TemplateData
- enums annotated with
@TemplateEnum
- Namespace Extension Methods in general
- global variables
- the current
io.vertx.core.http.HttpServerRequest
via CDI, e.g.{cdi:vertxRequest.getParam('foo')}
Read the full documentation.