Skip to content

Theme static tag - #14

Open
linuxsoftware wants to merge 4 commits into
moorinl:mainfrom
linuxsoftware:theme_static-tag
Open

Theme static tag#14
linuxsoftware wants to merge 4 commits into
moorinl:mainfrom
linuxsoftware:theme_static-tag

Conversation

@linuxsoftware

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown
Member

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

@robmoorman

Copy link
Copy Markdown
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