@@ -39,6 +39,7 @@ class HtmlGenerator extends Generator {
3939 final String _relCanonicalPrefix;
4040 final Templates _templates;
4141 final String _toolVersion;
42+ final String faviconPath;
4243
4344 final StreamController <File > _onFileCreated =
4445 new StreamController (sync : true );
@@ -51,23 +52,27 @@ class HtmlGenerator extends Generator {
5152 List <String > headers,
5253 List <String > footers,
5354 String relCanonicalPrefix,
54- String toolVersion}) async {
55+ String toolVersion,
56+ String faviconPath}) async {
5557 var templates =
5658 await Templates .create (headerPaths: headers, footerPaths: footers);
5759
5860 if (toolVersion == null ) {
5961 toolVersion = 'unknown' ;
6062 }
6163
62- return new HtmlGenerator ._(url, relCanonicalPrefix, templates, toolVersion);
64+ return new HtmlGenerator ._(url, relCanonicalPrefix, templates, toolVersion,
65+ faviconPath: faviconPath);
6366 }
6467
6568 HtmlGenerator ._(
66- this ._url, this ._relCanonicalPrefix, this ._templates, this ._toolVersion);
69+ this ._url, this ._relCanonicalPrefix, this ._templates, this ._toolVersion,
70+ {this .faviconPath});
6771
6872 Future generate (Package package, Directory out) {
6973 return new HtmlGeneratorInstance (_toolVersion, _url, _templates, package,
70- out, _onFileCreated, _relCanonicalPrefix)
74+ out, _onFileCreated, _relCanonicalPrefix,
75+ faviconPath: faviconPath)
7176 .generate ();
7277 }
7378}
0 commit comments