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
16
tests/cases/deep_access.nomo
Normal file
16
tests/cases/deep_access.nomo
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"world": {
|
||||
"active": true,
|
||||
"name": "World!"
|
||||
}
|
||||
}
|
||||
---
|
||||
{{ if world?.active }}
|
||||
Hello {{= world.name }}
|
||||
{{ end }}
|
||||
|
||||
{{ if world?.foo?.bar?.active }}
|
||||
Weird!
|
||||
{{ else }}
|
||||
Deep access is working :)
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue