-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[Documentation Request] Extending the HTML template #21593
Copy link
Copy link
Closed
Labels
Description
Describe the feature
How to extend the HTML template should be explained clearly in the docs, with example for the most common things.
We should document how to use the following Nitro hooks at the same time.
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('render:html', (html, { event }) => { console.log({ html }) })
nitroApp.hooks.hook('render:response', (response, { event }) => { console.log(response) })
})This would fix #14195
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
Reactions are currently unavailable