Rendering my first template with actually following paths.

Before I was hard-coding the path to the reference. Now I am following the full path programmatically using the new ContextElement and Walkable traits.
This commit is contained in:
Tom Alexander
2020-04-11 22:52:20 -04:00
parent e5e1703fab
commit 273f6204d8
3 changed files with 9 additions and 12 deletions

View File

@@ -57,13 +57,13 @@ pub struct Comment<'a> {
}
#[derive(Clone, Debug, PartialEq)]
struct Path<'a> {
keys: Vec<&'a str>,
pub struct Path<'a> {
pub keys: Vec<&'a str>,
}
#[derive(Clone, Debug, PartialEq)]
pub struct Reference<'a> {
path: Path<'a>,
pub path: Path<'a>,
filters: Vec<Filter>,
}