No project description provided
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-webpack-bundle-1.1.0.tar.gz
.
File metadata
- Download URL: django-webpack-bundle-1.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a483cb75d401267cb4cb9489f77f9c560c09af6ad50da116e6c3927e7178c3f |
|
MD5 | 813ee50b5da7c2d7b033dca2efe0db72 |
|
BLAKE2b-256 | adadd4fd91a694926e17e83c2ebbc16abcf21cd9e50b064d0f3995a05a5cf083 |
File details
Details for the file django_webpack_bundle-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_webpack_bundle-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff8c0a848a8cf0d4204ab63a0166a2ae80b05449b183abe9ac024a0947c9497e |
|
MD5 | 7d1ce3f73efb0cc043fe48744ec9b869 |
|
BLAKE2b-256 | 9e3d19354afe29dbd0270f5866477830312fdd475034ef185884accba0503f33 |