-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from marko-js/issue-1
fix: issue printing destructured tag params
- Loading branch information
Showing
6 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/__tests__/__snapshots__/params-destructured.expected/auto.marko
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,11 @@ | ||
<macro name="recursive"> | ||
<await(generator.next())> | ||
<@then|{ value, done }|> | ||
<div> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
</div> | ||
</@then> | ||
</await> | ||
</macro> |
10 changes: 10 additions & 0 deletions
10
src/__tests__/__snapshots__/params-destructured.expected/concise.marko
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,10 @@ | ||
macro name="recursive" | ||
await(generator.next()) | ||
@then|{ value, done }| | ||
div | ||
ul | ||
li -- ${value} | ||
ul | ||
li -- ${value} | ||
ul | ||
li -- ${value} |
11 changes: 11 additions & 0 deletions
11
src/__tests__/__snapshots__/params-destructured.expected/html.marko
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,11 @@ | ||
<macro name="recursive"> | ||
<await(generator.next())> | ||
<@then|{ value, done }|> | ||
<div> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
</div> | ||
</@then> | ||
</await> | ||
</macro> |
11 changes: 11 additions & 0 deletions
11
src/__tests__/__snapshots__/params-destructured.expected/with-parens.marko
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,11 @@ | ||
<macro name="recursive"> | ||
<await(generator.next())> | ||
<@then|{ value, done }|> | ||
<div> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
</div> | ||
</@then> | ||
</await> | ||
</macro> |
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,11 @@ | ||
<macro name="recursive"> | ||
<await(generator.next())> | ||
<@then|{ value, done }|> | ||
<div> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
<ul><li>${value}</li></ul> | ||
</div> | ||
</@then> | ||
</await> | ||
</macro> |
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