The goal of this extension is to expose the Qute templates located in the src/main/resources/templates/pub
directory via HTTP. Automatically, no controllers needed. For example, the template src/main/resources/templates/pub/foo.html
will be served from the paths /foo
and /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 thehttp:
namespace, e.g.{http:request.path}
- the query parameters via the
http:
namespace, e.g.{http:param('name')}
and{http:param('name','DefaultName'}
Read the full documentation.