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.
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-loaderon webpack to change.swigfiles to .htmland all is work good on Django, exept paths to static.There is tag on Django
{% static 'url_to_file'%}wherestaticchanges 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.