Open
Description
Example test case:
#[test]
#[should_panic]
fn test_recursively_included_template_does_not_produce_endless_loop() {
panic!("We don't check recursion depth");
/*
let parser = liquid::ParserBuilder::with_liquid().include_source(Box::new(InfiniteFileSystem)).build();
parser.parse("{% include 'loop' %}").unwrap();
*/
}
We probably want Parser
to have an Option<number>
that gets passed to the context. The context would then track the depth and error appropriately.
Resources