python-eel/Eel

How to use variable in html body ,

Open

#370 geöffnet am 1. Aug. 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (570 Forks)batch import
help wanted

Repository-Metriken

Stars
 (5.980 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Describe the problem Hello , In my python code i have the below line eel.start('templates/hello.html', size=(300, 200), content="hello world",jinja_templates='templates')

and in my html i have the below code 👍 {% extends 'base.html' %} {% block title %}Hello, World!{% endblock %}

{% block content %} {{content}} {% endblock %}

but it is not working , the body is always blank .Is it the correct way of doing this or am i missing something.

...


```html
<html>
   ...
</html>

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Contributor Guide