jael_preprocessor 2.0.1 copy "jael_preprocessor: ^2.0.1" to clipboard
jael_preprocessor: ^2.0.1 copied to clipboard

A pre-processor for resolving blocks and includes within Jael templates.

example/main.dart

import 'dart:async';

import 'package:file/file.dart';
import 'package:jael/jael.dart' as jael;
import 'package:jael_preprocessor/jael_preprocessor.dart' as jael;

Future<jael.Document> process(
    jael.Document doc, Directory dir, errorHandler(jael.JaelError e)) {
  return jael.resolve(doc, dir, onError: errorHandler, patch: [
    (doc, dir, onError) {
      print(doc.root.children.length);
      return doc;
    },
  ]);
}
1
likes
40
pub points
0%
popularity

Publisher

verified publisherangel-dart.dev

A pre-processor for resolving blocks and includes within Jael templates.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

file, jael, symbol_table

More

Packages that depend on jael_preprocessor