Skip to content

How iterate map? #51

@WarL0ckNet

Description

@WarL0ckNet

In https://pugjs.org/language/iteration.html

ul
  each val, key in {1: 'one', 2: 'two', 3: 'three'}
    li= key + ': ' + val

How this write in your engine?

And how write one item from map? Example .arr[.key].field

arr{
  "one": {
     "field": 1
   },
   "two::{
      "field": 3
    }
}

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