Skip to content

A basic builder for injecting content hashes or other things into templates.

License

Notifications You must be signed in to change notification settings

ahorseman/built_html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic Builder for injecting content into html templates.

Usage

First, add a dependency on this package:

dev_dependencies:
  built_html: ^0.1.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>

About

A basic builder for injecting content hashes or other things into templates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 94.6%
  • HTML 5.4%