Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pinpox opened this issue Mar 5, 2022 · 0 comments
Open

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

pinpox opened this issue Mar 5, 2022 · 0 comments

Comments

@pinpox
Copy link

pinpox commented Mar 5, 2022

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"
    },
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant