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

{{ STATIC_URL }} support? #44

Closed
waruboy opened this issue Oct 25, 2012 · 2 comments
Closed

{{ STATIC_URL }} support? #44

waruboy opened this issue Oct 25, 2012 · 2 comments

Comments

@waruboy
Copy link

waruboy commented Oct 25, 2012

I have some trouble adding my CSS in my template using {{ STATIC_URL }}. The tag does not work inside the link markup, but works anywhere else. This:

{{ STATIC_URL }}

correctly translated into

/static/

, but

link(href="{{ STATIC_URL }}css/bla.css"

become

link href="{{ STATIC_URL }}css/bla.css"

I use pyjade with Django. Anybody can help on this?

also asked at SO:
http://stackoverflow.com/questions/13029876/static-url-with-pyjade-in-django


Uh oh, I found the answer in the issue below, had to use '!='. Sorry

@acertain
Copy link

acertain commented Nov 9, 2012

use link href=STATIC_URL + 'css/bla.css'
or link href='#{STATIC_URL}css/bla.css'

Also, please close this issue once it's fixed.

@waruboy waruboy closed this as completed Dec 7, 2012
@waruboy
Copy link
Author

waruboy commented Dec 7, 2012

Oops, sorry, don't know I have to close an issue. Newbie here

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