feat: add support for partial <head> merging (#1863)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Head, Partial } from "$fresh/runtime.ts";
|
||||
import { Fader } from "../../islands/Fader.tsx";
|
||||
|
||||
export default function SlotDemo() {
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>Head merge</title>
|
||||
<meta name="foo" content="bar" />
|
||||
<meta property="og:foo" content="og value foo" />
|
||||
</Head>
|
||||
<Partial name="slot-1">
|
||||
<Fader>
|
||||
<p class="status-initial">Initial content</p>
|
||||
</Fader>
|
||||
</Partial>
|
||||
<p>
|
||||
<a
|
||||
class="update-link"
|
||||
href="/head_merge/injected"
|
||||
f-partial="/head_merge/update"
|
||||
>
|
||||
update
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user