Add Stipple,jl reactive elements to existed Genie.jl app with controllers

So I made Genie.jl app as it described in movie example. With controllers, route.jl, ets…

Is it possible to use Stipple.jl functionality in existed project?

I have no app.jl in Genie.jl project… Where I should use all of these elements?

using GenieFramework # < inside controller?
using Statistics
@genietools # < inside controller?

@app begin # < inside controller?
    @in N = 0
    @out m = 0.0
    @out name = "John"
    @onchange N begin
        m = mean(rand(N))
    end
end

# Define the UI for each page
index() = [h1("Welcome {{name}}!"), a(href="/form")]
function formui()  # < call this function from routes.jl 
    cell([
        textfield("How many numbers?", :N),
        p("The average of {{N}} random numbers is {{m}}"),
    ])
end

@route("/", index) # < remove this ?
@page("/form", formui) # < remove this ?

Can i just add?:

using MyGenieApp.OnesController
route("/trials", OnesController.formui)

After some tries…

and

import Pkg; Pkg.add("StipplePivotTable")

got…

Failed to precompile StipplePivotTable [adab0226-ee3c-44de-8f2f-393b1bf1e936] to C:\Users\...\.julia\compiled\v1.8\StipplePivotTable\jl_A02.tmp.
ERROR: LoadError: UndefVarError: @kwdef not defined

Are you using pre-1.9 Julia? What does @kwdef do? - #4 by j-fu says that @kwdef was exported from Base in version 1.9.

So, yes. This was a problem with @kwdef, julia version 1.9 solve it.

But as i correctly understand I cant use something like @route("/", index) in route.jl for simple Genie.jl mvc project.
Seems I should manually make page with java scripts for asynchronous work.

I’ve never used Genie or Stipple, but the docs here say to define routes with the @page macro: Introduction - Genie

Some other posts here suggest contacting the developers at Genie Community

I hope that helps