viur-framework / flare

Python framework to create web-apps on top of Pyodide
https://flare.docs.viur.dev
MIT License
33 stars 10 forks source link

Implementing flare-for #9

Closed phorward closed 3 years ago

phorward commented 3 years ago

Likewise v-for in Vue.js, flare should allow for a list-rendering method flare-for. This can only be achieved properly when fromHTML.replaceVars() provides a way to access sub-classing elements, delimited by the dot notation, like

<ul flare-for="animal in animals">
    <li class="animal-{{animal.livingspace}}">{{animal.name}}</li> 
</ul>