-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(looping): Add test for 11ty#179
Issue 179: > bug: “`loopContent.map is not a function (via TypeError)`” 11ty#179
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script webc:setup> | ||
const MapData = new Map([ | ||
['one', 1], | ||
['two', 2], | ||
['three', 3], | ||
]) | ||
|
||
const SetData = new Set([ | ||
'one', | ||
'two', | ||
'three', | ||
]) | ||
</script> | ||
<dl> | ||
<template webc:for="(key, val) of MapData" webc:nokeep> | ||
<dt @text="key"></dt> | ||
<dd @text="val"></dd> | ||
</template> | ||
</dl> | ||
<ul> | ||
<template webc:for="val of SetData" webc:nokeep> | ||
<li @text="val"></li> | ||
</template> | ||
</ul> |