Filters let you use other languages within a jade template. They take a block of plain text as an input.

All JSTransformers can be used as jade filters. Popular filters include :coffee-script, :babel, :uglify-js, :less, and :markdown-it.

  # Markdown

  I often like including markdown documents.
    console.log 'This is coffee script'
<p>I often like including markdown documents.</p>
<script>console.log('This is coffee script')</script>


Filters are compile time. This makes them fast but means they cannot support dynamic content.

Built in filters are not available in the browser as they would not all work. Providing you compile your templates server side, they will still work fine though.