Which feature in Pug allows for writing reusable and maintainable code?

  • Mixins
  • Extends
  • Includes
  • Blocks
In Pug, the mixins feature allows you to write reusable and maintainable code. Mixins are similar to functions and can be called to generate HTML markup with parameters, making your code more modular and easier to maintain. The other options are used for different purposes in Pug templates.
Add your answer
Loading...

Leave a comment

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