Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

How to pass argument to loop via jinja #485

Description

@evheniu

Describe the problem
How do I pass argument b to a for loop to jinja template?

Code snippet(s)
Example:

importeeleel.init("web")
b= [1,2,3]
eel.start("templates/main.html",size=(350, 400), jinja_templates='templates')
<html><label><div>Example:</div><selectname="a">
{% for a in b %}
<optionvalue="{{ a }}">{{ a }}</option>
{% endfor %}
</select></label></html>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions