Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added feature to include jinja template context in startpage #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oluwafenyi
Copy link

We can now include a context into the start page for jinja templates. This is useful for adding code generated data, custom functions, iterators into the markup. I make use of this feature in a project below:
https://github.com/oluwafenyi/sudoku-solver/blob/master/sudoku.py

Copy link

@spookybear0 spookybear0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like an interesting idea, and it seemed simple enough to make. It looks good to me, because it only adds two lines of code but this is needed.

StephenChan added a commit to StephenChan/Eel that referenced this pull request Jul 11, 2023
Copied from python-eel#368 (but that changeset is based off of a 2020 version of Eel).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants