Skip to content

v0.30.3

Compare
Choose a tag to compare
@github-actions github-actions released this 07 May 15:19
· 8 commits to master since this release

Stipple v0.30.3

Vue3

This is the first release that fully supports Vue3 and Quasar 2 when used together with StippleUI >= v0.24
The versions v0.30.0 - v0.30.2 contained several bugs which are now fixed.

New features

  • macro syntax @push in @onchangeand @onbutton now supports a field argument
  • new macro syntax @run "<js statement>" to execute code at the client side
  • tentative js assignment
@app begin
    @in i = 1
    @in j = 2
    @onchange j begin
        println("j: $j")
    end

    @onchange i begin
        j[!] = 3
        @push :j
        @run "console.log(`Just silently changed 'j' to 3 and pushed the value to the frontend!`)"
        js"j" = 4
        @run "console.log('Just set `j` to 4 from the client side! Check your value at the server side!')"
    end
end

route("/") do
    global model
    model = @init
    page(model, ui) |> html
end

ui() = [
    btn("+1", @click("i += 1"))
    h4("i: {{i}}, j: {{j}}")
]

Diff since v0.30.2

Note

The above features have been backported to version v0.29.1, which will be the last Vue2/Quasar1 version of Stipple.