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

Add resource loading in jinja templates #706

Open
sansyrox opened this issue Dec 2, 2023 · 2 comments
Open

Add resource loading in jinja templates #706

sansyrox opened this issue Dec 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@sansyrox
Copy link
Member

sansyrox commented Dec 2, 2023

For the jinja implementation would it be possible to add something to load the resources like Flask:

{{ url_for('static', filename='images/planets.jpeg') }}
or Starlette :

{{ url_for('static', path='images/planets.jpeg') }}
or for a route:

{{ url_for('/') }}
Because currently using url_for makes the template crash and returns a 500 error ...

Out put this point the integration of jinja works well good job ;)

@sansyrox sansyrox added the enhancement New feature or request label Dec 2, 2023
@sansyrox
Copy link
Member Author

We will have to include the work done in this PR - https://github.com/sparckles/Robyn/pull/738/files

And then build upon it !

@carrycooldude
Copy link

Hey @sansyrox , I created a PR #758
have a look on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants