Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: remove semis
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Głowala <48835293+DamianGlowala@users.noreply.github.com>
  • Loading branch information
danielroe and DamianGlowala committed Sep 23, 2022
1 parent 94de710 commit ecc32de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/content/2.guide/4.going-further/2.hooks.md
Expand Up @@ -55,14 +55,14 @@ These hooks are available for [Nitro plugins](https://nitro.unjs.io/guide/advanc
```js [~/server/plugins/test.ts]
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('render:html', (html, { event }) => {
console.log('render:html', html);
html.bodyAppend.push('<hr>Appended by custom plugin');
});
console.log('render:html', html)
html.bodyAppend.push('<hr>Appended by custom plugin')
})

nitroApp.hooks.hook('render:response', (response, { event }) => {
console.log('render:response', response);
});
});
console.log('render:response', response)
})
})
```

::alert{icon=👉}
Expand Down

0 comments on commit ecc32de

Please sign in to comment.