Skip to content

Error: line 5: interleaved closing tag: each #75

@pinpox

Description

@pinpox

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions