Add deep access
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
4f770c1f24
commit
ffd9baf90f
9 changed files with 669 additions and 5 deletions
11
tests/cases/deep_access.4-output.snap
Normal file
11
tests/cases/deep_access.4-output.snap
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: output
|
||||
info:
|
||||
input: "{{ if world?.active }}\nHello {{= world.name }}\n{{ end }}\n\n{{ if world?.foo?.bar?.active }}\n Weird!\n{{ else }}\n Deep access is working :)\n{{ end }}"
|
||||
context:
|
||||
world:
|
||||
active: true
|
||||
name: World!
|
||||
---
|
||||
"\nHello World!\n\n\n\n Deep access is working :)\n"
|
||||
Loading…
Add table
Add a link
Reference in a new issue