57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
---
|
|
source: tests/file_tests.rs
|
|
expression: ast
|
|
input_file: tests/cases/multiple.temple
|
|
---
|
|
TemplateAst {
|
|
root: [
|
|
StaticContent(
|
|
TemplateToken {
|
|
kind: Content,
|
|
source: "Hi there! My name is",
|
|
},
|
|
),
|
|
Interpolation {
|
|
prev_whitespace: Some(
|
|
TemplateToken {
|
|
kind: Whitespace,
|
|
source: " ",
|
|
},
|
|
),
|
|
wants_output: Some(
|
|
TemplateToken {
|
|
kind: WantsOutput,
|
|
source: "=",
|
|
},
|
|
),
|
|
expression: VariableAccess(
|
|
TemplateToken {
|
|
kind: Ident,
|
|
source: "name",
|
|
},
|
|
),
|
|
post_whitespace: Some(
|
|
TemplateToken {
|
|
kind: Whitespace,
|
|
source: " ",
|
|
},
|
|
),
|
|
},
|
|
Interpolation {
|
|
prev_whitespace: None,
|
|
wants_output: Some(
|
|
TemplateToken {
|
|
kind: WantsOutput,
|
|
source: "=",
|
|
},
|
|
),
|
|
expression: VariableAccess(
|
|
TemplateToken {
|
|
kind: Ident,
|
|
source: "lastname",
|
|
},
|
|
),
|
|
post_whitespace: None,
|
|
},
|
|
],
|
|
}
|