A basic Builder for injecting content hashes into html templates. In the future other functionality may be added.


First, add a dependency on this package (probably a dev dependency):

  built_html: ^0.1.0

The first step is to move your *.html file to a *.template.html file. This will be modified and copied to the original *.html location.

Adding content digests

To add a content digest to your html, you can use the {{digest <uri>}} syntax.

For example, to create a cache busting uri for a javascript file, you can do the following:

<script src="main.dart.js?q={{digest main.dart.js}}"></script>