Skip to content

Commit

Permalink
Fix missing footer in compiled slot/fill example (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deimos committed Oct 25, 2020
1 parent 9c1aa2a commit 1b27fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ HTML files can define `slot` elements with an attribute `name`. slots can be fil
<h1>About</h1>
<p>welcome</p>
</main>
<footer>Unique to this page</footer>
```

You can also define a special unnamed `slot` that will be filled with the `import` children that are not `fill` tags:
Expand Down
3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ <h4 id="slot-and-fill-elements"><code>&lt;slot&gt;</code> and <code>&lt;fill&gt;
&lt;main&gt;
&lt;h1&gt;About&lt;/h1&gt;
&lt;p&gt;welcome&lt;/p&gt;
&lt;/main&gt;</code></pre>
&lt;/main&gt;
&lt;footer&gt;Unique to this page&lt;/footer&gt;</code></pre>
<p>You can also define a special unnamed <code>slot</code> that will be filled with the <code>import</code> children that are not <code>fill</code> tags:</p>
<pre><code class="language-html">&lt;!-- base.html --&gt;

Expand Down

0 comments on commit 1b27fc1

Please sign in to comment.