Show Topics


Slim is a whitespace sensitive HTML templating language. Prepros compiles Slim files to .html by default. Set output extension to .php in output options if you want to compile Slim 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 Slim files.

  • Pretty

    Enable this option to prettify the output HTML file.

  • Indent Type

    Use this option to indent output HTML with spaces or tabs.

  • Indent Width

    Use this option to set the number of spaces or tabs to use while indenting output HTML.

  • Minify HTML

    Enable this option to minify the output HTML file.

Imported Files

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

    title Slim Example

// This file will compiled automatically whenever you edit b.slim

Note: Prepros doesn't support nested Slim imports.

Learn more about Slim from Slim website.