Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lenntil committed Dec 5, 2023
1 parent 949647e commit 53ee47c
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,23 +199,25 @@ fi
const moduleNames = ["Counter", "TextField"] as const;
</script>
<hgroup>
<h2>Using one `elm.js` file containing multiple modules</h2>
<h3>Each module is used 3 times.</h3>
</hgroup>
<div>
<section>
<hgroup>
<h4>Using one `elm.js` file containing multiple modules</h4>
<h5>Each module is used 3 times.</h5>
</hgroup>
</section>
<section>
{#each moduleNames as moduleName}
{#each Array(3) as _, index (`${moduleName}-${index * 3}`)}
<div>
<Elm {elmJsFilename} {moduleName} />
</div>
{/each}
{/each}
</div>
</section>
```

## Example 2. Using multiple `_moduleName_.js` files containing a module as same name as filename.
### Example 2. Using multiple `_moduleName_.js` files containing a module as same name as filename.

```svelte
<script lang="ts">
Expand All @@ -225,10 +227,10 @@ fi
</script>
<hgroup>
<h2>Using multiple `moduleName.js` files</h2>
<h3>
<h4>Using multiple `moduleName.js` files each containing one module</h4>
<h5>
Each module is used 3 times.
</h3>
</h5>
</hgroup>
<div>
{#each elmJsFilenames as elmJsFilename}
Expand Down

0 comments on commit 53ee47c

Please sign in to comment.