Skip to content

Auto-input url to staticfiles on {% static %} tag #14

@mihalt

Description

@mihalt

Hi! I was interested in swig, because I use Django. If html on frontend side was written on it, it is easy for me to move templates to Django. I can use file-loader on webpack to change .swig files to .html and all is work good on Django, exept paths to static.

There is tag on Django {% static 'url_to_file'%} where static changes on base-url to static, which is on Django settings, and 'url_to_file' is concret file in staticfiles directory. And it would be nice if this tag automaticaly inserts on frontend side on webpack with previously setted by me base url variable concatinated with name of concret static file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions