Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-webpack-bundle-1.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

django_webpack_bundle-1.1.0-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2 Python 3

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

Hashes for django-webpack-bundle-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1a483cb75d401267cb4cb9489f77f9c560c09af6ad50da116e6c3927e7178c3f
MD5 813ee50b5da7c2d7b033dca2efe0db72
BLAKE2b-256 adadd4fd91a694926e17e83c2ebbc16abcf21cd9e50b064d0f3995a05a5cf083

See more details on using hashes here.

Provenance

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

Hashes for django_webpack_bundle-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff8c0a848a8cf0d4204ab63a0166a2ae80b05449b183abe9ac024a0947c9497e
MD5 7d1ce3f73efb0cc043fe48744ec9b869
BLAKE2b-256 9e3d19354afe29dbd0270f5866477830312fdd475034ef185884accba0503f33

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page