built_html 0.1.0+1

  • README.md
  • Installing
  • Versions
  • 80

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):

  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>

0.1.0+1 #

Allow 2.0.0 of the sdk.

0.1.0 #

Initial release, supports {{digest <uri>}} tags in html.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  built_html: ^0.1.0+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:built_html/builder.dart';
Version Uploaded Documentation Archive
0.1.3 Feb 20, 2019 Go to the documentation of built_html 0.1.3 Download built_html 0.1.3 archive
0.1.2 Aug 21, 2018 Go to the documentation of built_html 0.1.2 Download built_html 0.1.2 archive
0.1.1 Aug 21, 2018 Go to the documentation of built_html 0.1.1 Download built_html 0.1.1 archive
0.1.0+1 Aug 16, 2018 Go to the documentation of built_html 0.1.0+1 Download built_html 0.1.0+1 archive
0.1.0 Aug 16, 2018 Go to the documentation of built_html 0.1.0 Download built_html 0.1.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.0
  • pana: 0.12.15


Detected platforms: Flutter, other

Platform components identified in package: build, io, isolate.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and built_html.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-2 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
build ^0.12.5 0.12.8 1.1.4
Transitive dependencies
analyzer 0.32.6 0.36.3
args 1.5.1
async 2.2.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.16.0
front_end 0.1.4+2 0.1.18
glob 1.1.7
html 0.14.0+2
kernel 0.3.4+2 0.3.18
logging 0.11.3+2
meta 1.1.7
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_test ^0.10.0
test ^1.0.0