jael3_preprocessor library Null safety

Classes

DocumentHierarchy

Functions

allChildrenOfRegularElement(RegularElement el, Map<String?, RegularElement> definedOverrides, void onError(JaelError e)?, bool replaceWithDefault, bool anyTemplatesRemain) List<ElementChild>
applyInheritance(Document? document, Directory currentDirectory, void onError(JaelError error)?, Iterable<Patcher>? patch) Future<Document?>
Folds any extend declarations.
findBlockOverrides(Element tmpl, void onError(JaelError e)?) Map<String, RegularElement>
getParent(Document document, void onError(JaelError error)?) String?
Finds the name of the parent template.
replaceBlocks(Element element, Map<String?, RegularElement> definedOverrides, void onError(JaelError e)?, bool replaceWithDefault, bool anyTemplatesRemain) Iterable<ElementChild>
replaceChildrenOfElement(Element el, Map<String, RegularElement> definedOverrides, void onError(JaelError e)?, bool replaceWithDefault, bool anyTemplatesRemain) Element
replaceChildrenOfRegularElement(RegularElement el, Map<String?, RegularElement> definedOverrides, void onError(JaelError e)?, bool replaceWithDefault, bool anyTemplatesRemain) RegularElement
resolve(Document document, Directory currentDirectory, {void onError(JaelError error)?, Iterable<Patcher>? patch}) Future<Document?>
Expands all block[name] tags within the template, replacing them with the correct content. [...]
resolveHierarchy(Document document, Directory currentDirectory, void onError(JaelError e)?) Future<DocumentHierarchy?>
Resolves the document hierarchy at a given node in the tree.
resolveIncludes(Document? document, Directory currentDirectory, void onError(JaelError error)?) Future<Document?>
Expands all include[src] tags within the template, and fills in the content of referenced files.

Typedefs

Patcher = FutureOr<Document>? Function(Document? document, Directory currentDirectory, void onError(JaelError error)?)
Modifies a Jael document.