1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use Debug;
use crateParser;
/// A `DocinfoFileHandler` is responsible for providing the text content of a
/// [docinfo file] when one is requested while resolving a document's docinfo.
///
/// This crate is a parser, not a converter, and never reads from the
/// filesystem itself. A client of [`Parser`] that wants docinfo files to be
/// applied must provide a `DocinfoFileHandler` (analogous to
/// [`IncludeFileHandler`]) that maps a computed docinfo file name to its
/// content. If no handler is provided, no docinfo content is resolved.
///
/// [docinfo file]: https://docs.asciidoctor.org/asciidoc/latest/docinfo/
/// [`Parser`]: crate::Parser
/// [`IncludeFileHandler`]: crate::parser::IncludeFileHandler