Skip to content

0.0.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@owais owais released this 25 May 06:11
· 326 commits to master since this release

Introducing render by file extension feature.

render_bundle can take second argument that is a file extension. If the file extension is provided, only files matching that extension will be rendered by the tag. For example,

{% load render_bundle from webpack_loader %}

<html>
  <head>
    {% render_bundle 'main' 'css' %}
  </head>
  <body>
    ....
    {% render_bundle 'main' 'js' %}
  </body>
</head>

will render CSS files in <head> and JS files just before </body>