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

Theme static tag #14

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

linuxsoftware
Copy link

theme_static tag

Works just like the standard Django static tag, but when a theme is active,
it will also prefix the theme path. E.g. If the theme brand is active
{% theme_static img/logo.png %} will give /static/theme/brand/img/logo.png
If no theme was active it'd just be /static/img/logo.png

@coveralls
Copy link

Coverage Status

Coverage decreased (-10.3%) to 89.706% when pulling a2196ab on linuxsoftware:theme_static-tag into 5a87c74 on moorinteractive:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-10.3%) to 89.706% when pulling a2196ab on linuxsoftware:theme_static-tag into 5a87c74 on moorinteractive:master.

@robmoorman
Copy link
Member

This is a very interesting found, I'll have a look at it! Thanks.

@robmoorman
Copy link
Member

He @linuxsoftware thanks for this. It's pretty long time ago this is submitted but we're working hard to get an theme editor feature in which has a static theme templatetag in it; kinda the PR you sent. Keep you posted on this one.

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.

3 participants