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

Access to env vars in Jinja templates #1532

Open
kevlinsky opened this issue Dec 20, 2024 · 3 comments
Open

Access to env vars in Jinja templates #1532

kevlinsky opened this issue Dec 20, 2024 · 3 comments

Comments

@kevlinsky
Copy link

You've already added env_override function in app/templates/filter.py::31 project file, but not added to CUSTOM_FILTERS. Can you add in a new version env_override filter to CUSTOM_FILTERS for accepting env vars from Jinja templates?

@M03ED
Copy link
Collaborator

M03ED commented Dec 23, 2024

May I ask what is the use case of this ?

@kevlinsky
Copy link
Author

May I ask what is the use case of this ?

I'm using a custom subscription page template in my installation and I have dynamic link inside it which I want to configure by my .env file

@M03ED
Copy link
Collaborator

M03ED commented Dec 23, 2024

i don't know much about jinja
pr welcome

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

No branches or pull requests

2 participants