diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-05 14:58:33 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-02-05 14:58:33 +0100 |
commit | a4a575f05c7b680ba694d88bfb4f6aa5cc031f13 (patch) | |
tree | c60b01539105a165bbc75c05c39d8909422ea17b | |
parent | 38c467746e11f5da795b920b309a9051d6a39ddf (diff) | |
download | askama-a4a575f05c7b680ba694d88bfb4f6aa5cc031f13.tar.gz askama-a4a575f05c7b680ba694d88bfb4f6aa5cc031f13.tar.bz2 askama-a4a575f05c7b680ba694d88bfb4f6aa5cc031f13.zip |
Allow zero nodes in top-level parser
Diffstat (limited to '')
-rw-r--r-- | askama/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Node>, do_parse!( tag_s!("%}") >> (Node::Loop(var, iter, block)))); -named!(parse_template<Nodes>, many1!(alt!( +named!(parse_template<Nodes>, many0!(alt!( take_content | expr_node | block_if | |