diff options
Diffstat (limited to '')
-rw-r--r-- | askama_parser/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/askama_parser/src/lib.rs b/askama_parser/src/lib.rs index 6ff9360..43d953d 100644 --- a/askama_parser/src/lib.rs +++ b/askama_parser/src/lib.rs @@ -105,6 +105,10 @@ impl<'a> Ast<'a> { Err(ParseError(msg)) } + + pub fn nodes(&self) -> &[Node<'a>] { + &self.nodes + } } #[derive(Debug, Clone, PartialEq, Eq)] |