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

Cannot use variables in file path in tag #34

Open
andyhasit opened this issue Oct 9, 2017 · 0 comments
Open

Cannot use variables in file path in tag #34

andyhasit opened this issue Oct 9, 2017 · 0 comments

Comments

@andyhasit
Copy link

I can do this:

{% load static inlinecss %}
{% inlinecss "/css/mycssfile.css" %}

But I need to pass a variable instead of a string.

It won't let me pass it with the context (I get "invalid file: None" error):

{% load static inlinecss %}
{% inlinecss a_context_variable %}

I've tried various other things too:

https://stackoverflow.com/questions/44514339/django-template-use-inlinecss-with-variable

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

1 participant