Genie Discord forum
I have a Vue single-file component (.vue) file that I would like to be able to use in Stipple. What is the process for registering the file and component with stipple? Thanks for your help 🙂
why would you want to mix
stipple. What's the use case?
You can build entire vuejs app and use Genie as backend?
you can create your
vue udm app and use
serve_static to render that
Like for example this: https://github.com/GenieFramework/GeniePackageManager.jl/blob/master/views/index.html
and you can write StipplePage.jl and render than with
html and serve it from another route
like this server
dashboard.jl which is then served by
Technically all of this should work
I am however not sure about rendering
you'll have to create frontend separately. Use
node to serve frontend
genie backend for data/api
like traditionally how it's done
Thanks Abhi! I think I understand and will try this out.
Actually, a quick question. How would I connect the Stipple observables to specific variables in the vue udm app? In Stipple, it seems you need to place julia macros into the UI code. I don't see how to do that if I just pull in the entire vue udm app.
I don't understand what do you mean by connecting to Stipple Observables to VueUDM
What I proposed was building some pages in VueUDM and some pages in Stipple.jl
Not missing both in one page and using Genie to render those VueJS UDM and Stipple pages
Hi there ! I'm also currently very interested in using custom Vue components along with Genie.
@abhimanyuaryan , as I understand your previous responses, it is not possible to use the GenieFramework reactive API to manage the reactive variables of arbitrary Vue components.
I'm however confused regarding the limit of applicability of the reactive model (as is @eli it seems). GenieBuilder, for example, writes html style views, so how is it not possible to insert a custom vue component here, and manage its reactive properties using the GenieFramework API ?
you can use vue components with genie. Not sure about mixing those components in Stipple reactive pages
also you build your frontend with
vue create all the components in
.vue files and use genie as backend