From a4a575f05c7b680ba694d88bfb4f6aa5cc031f13 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 5 Feb 2017 14:58:33 +0100 Subject: Allow zero nodes in top-level parser --- askama/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askama/src/parser.rs b/askama/src/parser.rs index e29b460..3448330 100644 --- a/askama/src/parser.rs +++ b/askama/src/parser.rs @@ -133,7 +133,7 @@ named!(block_for, do_parse!( tag_s!("%}") >> (Node::Loop(var, iter, block)))); -named!(parse_template, many1!(alt!( +named!(parse_template, many0!(alt!( take_content | expr_node | block_if | -- cgit