diff options
author | René Kijewski <rene.kijewski@fu-berlin.de> | 2023-08-01 10:28:17 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-08-01 10:51:57 +0200 |
commit | ffe267be7a725c776ebc92d6551e8a070aadf254 (patch) | |
tree | e4a83dca4ed7949ba32e78da2841b81d83d9c083 /askama_parser | |
parent | cbf766fa1fb89dd3fc7bec7010b723945e44dea2 (diff) | |
download | askama-ffe267be7a725c776ebc92d6551e8a070aadf254.tar.gz askama-ffe267be7a725c776ebc92d6551e8a070aadf254.tar.bz2 askama-ffe267be7a725c776ebc92d6551e8a070aadf254.zip |
parser: add `Ast::nodes()` method
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)] |