Skip to content

Support for custom section (tags) #545

@angelozerr

Description

@angelozerr

We should support https://quarkus.io/guides/qute-reference#user_tags

With qute you can write custom section like

{#user inject:user img=true size=20/}

see https://github.com/FroMage/quarkus-renarde-todo/blob/5384be6c070d11e5aff200f2469d969c100af088/src/main/resources/templates/main.html#L23

This user name comes from the src/main/resources/templates/tags/user.html name file.

In other words all Qute template which are stored inside src/main/resources/templates/tags folder are considered as a section.

quarkus-renarde provides tags too and when this project is on the classpath, it provides the capability to use them in the user project.

For instance the quarkus project quarkus-renarde-todo use #form

{#form uri:Todos.done(todo.id) klass="inline"}

see https://github.com/FroMage/quarkus-renarde-todo/blob/5384be6c070d11e5aff200f2469d969c100af088/src/main/resources/templates/Todos/index.html#L24

which comes from the template of the referenced quarkus-renarde with

src/main/resources/templates/tags/form.html

I discover this logic in:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions