We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 } }
The text was updated successfully, but these errors were encountered:
Hello @WarL0ckNet, you can check the folder testdata/v2. There is a file about the iteration feature. In iteration.pug:
testdata/v2
iteration.pug
ul each val, index in map[int]string{1:"one",2:"two",3:"three"} li= strconv.Itoa(index) + ": " + val
For how write one item from map? You can try something with un/buffered code feature:
- var mymap = map[string]string{"one":"","two":"","three":""} doctype 5 html body p= mymap["one"]
Sorry, something went wrong.
No branches or pull requests
In https://pugjs.org/language/iteration.html
How this write in your engine?
And how write one item from map? Example .arr[.key].field
The text was updated successfully, but these errors were encountered: