47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
---
|
|
source: tests/file_tests.rs
|
|
expression: ast
|
|
info:
|
|
input: "{{ if test -}}\n Hello {{= stuff -}}\n{{- end }}"
|
|
context:
|
|
stuff: Hemera
|
|
test: true
|
|
---
|
|
TemplateAst {
|
|
root: [
|
|
ConditionalChain {
|
|
chain: [
|
|
Block {
|
|
prev_whitespace_content: None,
|
|
expression: IfConditional {
|
|
expression: VariableAccess(
|
|
[Ident]"test" (6..10),
|
|
),
|
|
},
|
|
post_whitespace_content: None,
|
|
},
|
|
ConditionalContent {
|
|
content: [
|
|
StaticContent(
|
|
[Content]"Hello" (19..24),
|
|
),
|
|
Interpolation {
|
|
prev_whitespace_content: Some(
|
|
[Whitespace]" " (24..25),
|
|
),
|
|
expression: VariableAccess(
|
|
[Ident]"stuff" (29..34),
|
|
),
|
|
post_whitespace_content: None,
|
|
},
|
|
],
|
|
},
|
|
Block {
|
|
prev_whitespace_content: None,
|
|
expression: EndBlock,
|
|
post_whitespace_content: None,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|