built_html 0.1.2 copy "built_html: ^0.1.2" to clipboard
built_html: ^0.1.2 copied to clipboard

outdated

A Builder for injecting content hashes into html templates

A basic Builder for injecting content into html templates.

Usage #

First, add a dependency on this package:

dev_dependencies:
  built_html: ^0.2.0

The next step is to rename your *.html files to a *.template.html files. Those files will be modified and copied to the original *.html location.

Also, take a look at example project for a working solution.

Commands #

digest <url> #

This command adds a content hash of an asset. Takes one parameter, the path to the file.

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

version #

This command simply adds the version from your package.yaml. Takes no parameters.

<script src="main.dart.js?q={{version}}"></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, yaml

More

Packages that depend on built_html