A django-webpack-loader template tag which optionally supports rendering chunks inline. This may be useful e.g. for the manifest respectively the Webpack runtime.
Install django-webpack-loader
Register webpack bundle as a template tag somewhere:
from django import template
from webpack_bundle import webpack_bundle
register = template.Library()
register.simple_tag(webpack_bundle)
webpack_bundle assumes that it may load Webpack bundles from settings.WEBPACK_BUNDLE_PATH or settings.BASE_DIR + "static/".
The arguments to the {% webpack_bundle %} template tag are basically the same as those for django-webpack-loader’s {% render_bundle %} except for the additional inline argument which optionally allows rendering chunks inline if the files can be found.
Release files for django-webpack-bundle 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-webpack-bundle-1.1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_webpack_bundle-1.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.4 kB
Release files / django-webpack-bundle-1.1.0.tar.gz
| Download URL | django-webpack-bundle-1.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a483cb75d401267cb4cb9489f77f9c560c09af6ad50da116e6c3927e7178c3f
|
|
BLAKE2b-256 checksum How to use checksums |
adadd4fd91a694926e17e83c2ebbc16abcf21cd9e50b064d0f3995a05a5cf083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / django_webpack_bundle-1.1.0-py2.py3-none-any.whl
| Download URL | django_webpack_bundle-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ff8c0a848a8cf0d4204ab63a0166a2ae80b05449b183abe9ac024a0947c9497e
|
|
BLAKE2b-256 checksum How to use checksums |
9e3d19354afe29dbd0270f5866477830312fdd475034ef185884accba0503f33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|