The goal of this extension is to expose the Qute templates located in the src/main/resource/templates/pub
directory via HTTP. Automatically, no controllers needed. For example, the template src/main/resource/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()}
@TemplateData
@TemplateEnum
io.vertx.core.http.HttpServerRequest
via the http:
namespace, e.g. {http:request.path}
http:
namespace, e.g. {http:param('name')}
and {http:param('name','DefaultName'}
Read the full documentation.