You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Did you figure this out? This seems essential to use jinja with it but I'm suspecting it is not possible since I don't seen any examples of passing context.
<!DOCTYPE html><htmllang="en"><head><title>Example</title><scripttype="text/javascript" src="/eel.js"></script><scriptsrc="//unpkg.com/alpinejs" defer></script></head><bodyx-data><h1x-text="eel.header()"></h1><templatex-for="a in eel.b()"><px-text="a"></p></template></body></html>
Alpine attributes can also be used in Eel apps for: getting variables, modifying python variables, html if statements, showing/hiding DOM elements, event listeners, transitions...
Is there a better solution to pass variables to HTML?
Activity
eddyizm commentedon Jan 29, 2022
Did you figure this out? This seems essential to use jinja with it but I'm suspecting it is not possible since I don't seen any examples of passing context.
Dan-Adamson commentedon May 16, 2022
Any resolution to this problem?
martin-foka commentedon Sep 18, 2022
I use Alpine.js as a workaround for my Jinja templates. All you need for your loop are alpine attributes:
Alpine attributes can also be used in Eel apps for: getting variables, modifying python variables, html if statements, showing/hiding DOM elements, event listeners, transitions...
Is there a better solution to pass variables to HTML?
eddyizm commentedon Sep 18, 2022
@maRT-sk That is an outstanding work around. Seems like a good fit as I have heard alpine being very lightweight and minimal.