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.
Loading...
Related Quiz
- How do you install a specific version of a package using npm?
- How can you extract route parameters in Express.js from a route URL like "/users/:userId"?
- When using ES6+ modules, the import statement must be at the ________ of the file.
- How can closures be utilized effectively for asynchronous programming in JavaScript?
- Which of the following strategies can be used to efficiently serve static assets and optimize performance?