jael3_preprocessor 8.1.1 copy "jael3_preprocessor: ^8.1.1" to clipboard
jael3_preprocessor: ^8.1.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:jael3/jael3.dart' as jael;
import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael;

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

Publisher

verified publisherdukefirehawk.com

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

belatuk_symbol_table, collection, file, jael3

More

Packages that depend on jael3_preprocessor