forked from hoisie/mustache
-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
I'm trying to loop through the properties of an object. According to stackoverflow this should be supported, but I get the error:
Error: line 5: interleaved closing tag: each
This is my template
{{#each .}}
Key: {{@key}} Value = {{this}}
{{/each}}And my data looks like this:
{
"base-image": {
"type": "unknown"
},
"nixosConfigurations": {
"ahorn": {
"type": "nixos-configuration"
},
"birne": {
"type": "nixos-configuration"
},
"bob": {
"type": "nixos-configuration"
},
"kartoffel": {
"type": "nixos-configuration"
},
"kfbox": {
"type": "nixos-configuration"
},
"porree": {
"type": "nixos-configuration"
}
},
"nixosModules": {
"activation-secrets": {
"type": "nixos-module"
},
}
}Metadata
Metadata
Assignees
Labels
No labels