Show Topics


Slim is a whitespace sensitive HTML templating language. Prepros compiles Slim files to .html by default. You can set output extension to .php in output options if you want to compile Slim files to PHP.

Configuring Slim

You can configure Slim from Project Settings -> HTML Tools -> Slim.

Change Output Destination

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


Pretty option allows you to format the output HTML file with nice indentation.

Indent Type

Use the Indent Type option to indent output HTML with spaces or tabs.

Indent Width

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

Minify HTML

Minify HTML option allows you to remove whitespace and comments from 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. Prepros doesn’t support nested Slim imports. Refresh project with CTRL+R or CMD+R to manually re-scan imported files.

For instance if you have a file called a.slim with the following import.

    title Slim Example

Prepros will process a.slim whenever you edit b.slim.

Learn more about Slim from Slim website.