aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_parser/src/lib.rs4
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)]