First attempt at a section render function.

Running into an issue with generics vs dynamic references.
This commit is contained in:
Tom Alexander
2020-04-28 20:46:29 -04:00
parent e5c4ba8c82
commit f0a69d12b9
4 changed files with 40 additions and 6 deletions

View File

@@ -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>;
}