Show Topics

Pug (Jade)

Pug, formerly known as Jade is a whitespace sensitive HTML templating language. Prepros supports Pug files with both .pug and .jade extensions. Prepros compiles Pug files to .html by default. Set output extension to .php in output options if you want to compile Pug files to PHP.


  • Output File

    Click the output file path to manually change it or use project wide output options to adjust output path for all Pug files.

  • Pretty

    Enable this option to prettify the output HTML file.

  • Minify HTML

    Enable this option to minify the output HTML file.

Included Files

Prepros compiles the parent file whenever you edit an included file. Prepros also re-scans included files whenever you edit a file. Refresh project with CTRL+R or CMD+R to manually re-scan included files.

extends b.pug
include c.pug

// This file will compiled automatically whenever you edit b.pug or c.pug

Use partial file name prefixed with an underscore (eg: _included.pug) if you don't want Prepros to automatically compile a file whenever you edit it.

Learn more about Sass from Pug website.