[Python] How to create <div uk-grid></div> with pypugjs

Discussão em 'Python' iniciado por Stack, Março 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am using PyPugJS and want to achieve the following:

    <div uk-grid>
    <div></div>
    </div>


    It should be easy to do, but i cannot find a clue anywhere.

    I have tried searching for several hours, tried a lot of different syntax but failed horribly.

    Example from something i thought should do the trick:

    div(uk-grid)
    div


    Found some hints that using a different html type would do the trick, but did not.

    UIkit does not work (for me) with something like:

    div(uk-grid="")
    div


    which translate in:

    <div uk-grid="">
    <div></div>
    </div>


    Any help or a solution would be very greatly appreciated.

    Continue reading...

Compartilhe esta Página