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:
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user