quarkiverse / quarkus-roq

An extension to generate/publish static pages from your Quarkus web-app
https://pages.quarkiverse.io/quarkus-roq/
Apache License 2.0
22 stars 11 forks source link

[roq-data] raw array content as object not working out of the box #147

Open ia3andy opened 1 month ago

ia3andy commented 1 month ago

there is a bug for a raw data array, when iterating, it doesn't wrap items content as JsonObject, it works with an extra items layer:

This works:

items:
  - title: "Blog"
    url: "/"
    icon: "fa fa-newspaper-o"
  - title: "Documentation"
    url: "https://docs.quarkiverse.io/quarkus-roq/dev/index.html"
    icon: "fa fa-book"
    target: "_blank"
  - title: "Events"
    url: "events"
    icon: "fa fa-calendar"
  - title: "About"
    url: "about"
    icon: "fa fa-thumbs-up"

this doesn't (when used from qute in a for loop):


- title: "Blog"
  url: "/"
  icon: "fa fa-newspaper-o"
- title: "Documentation"
  url: "https://docs.quarkiverse.io/quarkus-roq/dev/index.html"
  icon: "fa fa-book"
  target: "_blank"
- title: "Events"
  url: "events"
  icon: "fa fa-calendar"
- title: "About"
  url: "about"
  icon: "fa fa-thumbs-up"
mcruzdev commented 1 month ago

I will take a look tomorrow with #158, thank you for assigning me