Skip to content

[Documentation Request] Extending the HTML template #21593

@Hebilicious

Description

@Hebilicious

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions