First attempt at a section render function.
Running into an issue with generics vs dynamic references.
This commit is contained in:
@@ -22,7 +22,5 @@ pub trait Loopable {
|
||||
/// once with the context being the element at that path. Finally,
|
||||
/// if its an array-like value then it will render n-times, once
|
||||
/// for each element of the array.
|
||||
///
|
||||
/// TODO: Should this return an iterator instead of a vec?
|
||||
fn get_loop_elements(&self) -> Result<Vec<&dyn ContextElement>, RenderError>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user