built_html 0.1.0+1 copy "built_html: ^0.1.0+1" to clipboard
built_html: ^0.1.0+1 copied to clipboard

outdated

A Builder for injecting content hashes into html templates

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

Usage #

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

dev_dependencies:
  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>
4
likes
0
pub points
71%
popularity

Publisher

unverified uploader

A Builder for injecting content hashes into html templates

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

build

More

Packages that depend on built_html