GenieFramework / StippleUI.jl

StippleUI is a library of reactive UI elements for Stipple.jl.
MIT License
84 stars 15 forks source link

Using q-layout yields undefined error #107

Closed PGimenez closed 1 year ago

PGimenez commented 1 year ago

Trying to use q-layouteither in HTML or with StippleUI throws a Error: UndefVarError:q__layoutnot defined

MWE

using GenieFramework
@genietools

@app begin
    @out var1 = 0
end

function ui()
     # StippleUI.layout(["aaa"])
     "<q-layout></q-layout>"
end
@page("/", ui)
hhaensel commented 1 year ago

Not sure, why this is. It seems that ui() is parsed. But even if I wrapped it in ParsedHTMLString, it was still parsed. My way around was to manually define the route:

route("/") do 
    model = @init
    page(model, ui) |> html
end
essenciary commented 1 year ago

@PGimenez @hhaensel addressed in this commit, keep an eye on the 1.20 release https://github.com/GenieFramework/GenieFramework.jl/commit/9e149daab4681f4e3d6bb4d7da45deaf42067cf7