Inline Filters
Inline filters are used directly within the Pug template, prefixed with a colon followed by the filter name.
Syntax:
:filterName
Content to be processed by the filter.
Filters in Pug View Engine
Pug is a template engine that can be used to create HTML documents. It’s used to write templates that are then compiled into functions that take in data and render HTML documents.
We will discuss the different types of Filters in Pug Template and their Approaches:
Table of Content
- 1. :markdown:
- 2. :javascript:
- 3. :css:
- 4. :coffee:
- 5. :sass:
- 6. :less:
- Inline Filters:
- Block Filters:
- Extending Filters: