How can you implement template inheritance in Pug?

  • extend layout.pug
  • include layout.pug
  • inherit layout.pug
  • template layout.pug
In Pug, template inheritance is implemented using the extend keyword followed by the name of the layout file. This allows child templates to inherit the structure and content of the specified layout file. The other options (include, inherit, and template) are not used for template inheritance in Pug.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *