python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

How to use variable in html body , #370

Open ronidas39 opened 4 years ago

ronidas39 commented 4 years ago

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):

Smartphone (please complete the following information):