docs: add canary docs for <head> modifications (#3173)
Adds v2 version of "Modyfing the <head>" example. This is the next to last page that needs to be updated (though the other only requires minor changes to types).
This commit is contained in:
@@ -30,6 +30,8 @@ export async function otherMiddleware(ctx: Context<State>): Promise<Response> {
|
||||
With define helpers:
|
||||
|
||||
```ts util.ts
|
||||
import { createDefine } from "fresh";
|
||||
|
||||
// Setup, do this once in a file and import it everywhere else.
|
||||
export const define = createDefine<{ foo: string }>();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user