GenieFramework / Stipple.jl

The reactive UI library for interactive data applications with pure Julia.
MIT License
324 stars 27 forks source link

Quasar components don't render in layouts #281

Open PGimenez opened 6 months ago

PGimenez commented 6 months ago

I've tried defining a layout that uses quasar components like a toolbar, but the Quasar components are not rendering properly in the page. Using normal HTML works fine

Here's a MWE

using GenieFramework

@app begin
    @in txt = "Hello, World!"
end

ui() = [
        p("--------------"),
        p("body content:"),
        card(:txt),
        card("hello world"),
        checkbox("check me"),
        btn("aaa", icon="menu")
       ]

@page("/", ui, layout="layout.jl")

layout.jl:

[
 h4("Layout test"),
 card("hello world"),
 checkbox("check me"),
 btn("aaa", icon="menu"),
 page(model, partial=true, [@yield]) 
]

Result: the quasar components from the layout appear in the page code but are not rendered CleanShot 2024-05-17 at 20 34 59