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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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