--- source: tests/file_tests.rs expression: ast info: input: "{{ if test }}\n Not Hello World! :C\n{{ else if another_test }}\n Hello World!\n{{ end }}" context: test: false stuff: more another_test: true --- TemplateAst { root: [ ConditionalChain { chain: [ Block { prev_whitespace_content: None, expression: IfConditional { expression: VariableAccess( [Ident]"test" (6..10), ), }, post_whitespace_content: Some( [Whitespace]"\n " (13..18), ), }, ConditionalContent { content: [ StaticContent( [Content]"Not Hello World! :C" (18..37), ), ], }, Block { prev_whitespace_content: Some( [Whitespace]"\n" (37..38), ), expression: ElseConditional { expression: Some( VariableAccess( [Ident]"another_test" (49..61), ), ), }, post_whitespace_content: Some( [Whitespace]"\n " (64..69), ), }, ConditionalContent { content: [ StaticContent( [Content]"Hello World!" (69..81), ), ], }, Block { prev_whitespace_content: Some( [Whitespace]"\n" (81..82), ), expression: EndBlock, post_whitespace_content: None, }, ], }, ], }