From 2e62b9453f4bff95a50c8b58ff37a14e15199d3a Mon Sep 17 00:00:00 2001 From: Maksim Lin Date: Thu, 2 Jul 2020 15:33:34 +1000 Subject: [PATCH 1/2] change mustache pkg for compiling with dart2native use reflected_mustache to allow sitegen to be compiled with dart2native --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 419e9a1..2753c97 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -26,7 +26,7 @@ dependencies: yaml: ^2.1.0 path: ^1.0.0 markdown: ^2.0.0 - mustache: ^1.0.0 + reflected_mustache: ^1.0.0 intl: ^0.15.0 http_server: ^0.9.0 From 5e19e766395f8867d4db41886d2e460d460d56d7 Mon Sep 17 00:00:00 2001 From: Maksim Lin Date: Thu, 2 Jul 2020 21:13:10 +1000 Subject: [PATCH 2/2] actually use reflected_mustache package --- lib/sitegen.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/sitegen.dart b/lib/sitegen.dart index 24369e2..14877e1 100755 --- a/lib/sitegen.dart +++ b/lib/sitegen.dart @@ -16,7 +16,7 @@ import 'package:validate/validate.dart'; import "package:path/path.dart" as path; import "package:markdown/markdown.dart" as md; -import "package:mustache/mustache.dart" as mustache; +import "package:reflected_mustache/mustache.dart" as mustache; import "package:yaml/yaml.dart" as yaml; import 'package:http_server/http_server.dart'; @@ -36,11 +36,7 @@ bool _runsOnOSX() => (SysInfo.operatingSystemName == "Mac OS X"); // final _commands = new List(); Future main(List arguments) async { - final Application application = new Application(); + final Application application = new Application(); - application.run( arguments ); + application.run(arguments); } - - - -