Genie Discord forum

Author Avatarjeremiedb
12/24/2022, 1:43:29 AM

I often found to have to "fight" to get the desired layout and styling, which I attribute from the various style that Stipple inject by default, plus de ones from Quasar.

I found the html generated by GenieBuilder a promising approach as it provides to write generic html and integrate Quasar compoenents directly as found from the docs. Ex:

<q-select v-model="item" :options="item_options" label="MyLabel"></q-select>

However, the above only works if called through @page or Stipple.Pages.Page, which injects various formating along a footer.

Alternatively, if trying to go with the regular html route:

        layout = :app,
        context = MiniController,
        Model = MiniController.handlers(),

It wouldn't display the reactive element (select items) even if the various scripts are integrated like:

    <script src="/stipple.jl/master/assets/js/vue.js"></script>
    <script src="/stipple.jl/master/assets/js/stipplecore.js"></script>
    <script src="/stippleui.jl/master/assets/js/quasar.umd.min.js"></script>

My understanding being that it misses the MiniController.js script that Stipple generates.

So in summary, is there a path to get such workflow where one could just build the UI through straight html, similar to what GenieBuilder generates, while keeping in control of the styling elements? The general idea would be to be able to start from a vanilla styled page and then be able to add a Bootstrap4 or 5 version as one see fit, or any other assets ones may need.

For info, the above tests were done here:

Author Avatarabhimanyuaryan
1/2/2023, 8:31:38 AM

thanks for detailed explanation and code. I'll check

Author Avatarabhimanyuaryan
1/3/2023, 4:40:49 AM

I need to discuss this with Adrian. Thanks for reporting. However can you copy-paste and create this issue in Stipple.jl ???

So we don't loose track of it?

Author Avatarabhimanyuaryan
1/3/2023, 4:41:44 AM

discord is getting pilled up with lot questions lately and tracking important issues is getting hard

Author Avatarjeremiedb
1/3/2023, 4:49:21 AM

Sure, I'll open the issue tomorrow, thanks for taking a look at this! I had raised the question of facilitating styling templating some time ago with Adrian. As I've taken some time to understand a little better the Quasar framework, it will hopefully help lands on a more flexible approach.