2018-04-03 05:04:34 +00:00
|
|
|
import 'dart:async';
|
|
|
|
|
|
|
|
import 'package:file/file.dart';
|
|
|
|
import 'package:jael/jael.dart' as jael;
|
|
|
|
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;
|
|
|
|
|
2021-04-30 07:08:54 +00:00
|
|
|
Future<jael.Document?> process(
|
2018-04-03 05:04:34 +00:00
|
|
|
jael.Document doc, Directory dir, errorHandler(jael.JaelError e)) {
|
|
|
|
return jael.resolve(doc, dir, onError: errorHandler, patch: [
|
|
|
|
(doc, dir, onError) {
|
2021-04-30 07:08:54 +00:00
|
|
|
print(doc!.root.children.length);
|
2018-04-03 05:04:34 +00:00
|
|
|
return doc;
|
|
|
|
},
|
|
|
|
]);
|
|
|
|
}
|