public static interface DocumentFactoryBuilder.UnprocessedTagsHandler
Register a new unprocessed tags plugin.
Plugin is when tags were unexpectedly left after processing since they were not matched with input.
Modifier and Type | Method and Description |
---|---|
void |
onUnprocessed(java.lang.String prefix,
Templater templater,
java.lang.String[] tags,
java.lang.Object value)
Customize behavior for unprocessed tags - tags which did not match input data.
|
void onUnprocessed(java.lang.String prefix, Templater templater, java.lang.String[] tags, java.lang.Object value)
Customize behavior for unprocessed tags - tags which did not match input data.
By default unprocessed tags are left as-is (as a new tag with unprocessed appended as last metadata) but sometimes its useful to remove them or to replace them with a custom value (eg, from their metadata)
prefix
- current navigation prefixtemplater
- Templater instancetags
- tags which were not matched with input valuesvalue
- currently processed leaf