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()


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.

Files for django-webpack-bundle, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_webpack_bundle-1.1.0-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-webpack-bundle-1.1.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page