Pug (Jade) Template Engine
WebStorm integrates with the Pug (Jade) template engine.
Changes to the UI
The Pug (ex-Jade) plugin introduces the following changes to the WebStorm UI:
Using Pug(Jade) templates in a Node.js application
At runtime, the Pug (Jade) files fill be transformed into HTML pages.
Create a project from scratch, or around existing sources, or based on a NodeExpress template. See Creating Projects for details.
Create a Pug (Jade) file. Follow these steps:
In the Project Tool Window, select the directory in which you want to create a new file. To do that, for example, choose .
From the context menu, choose Jade file and specify the filename in the dialog that opens.
Create a File Watcher to transform files with the extension
Click the Add Watcher link in the upper right-hand corner of the editor.
In the New Watcher Dialog, accept the default predefined settings.
Note that if the executable is in the PATH, then you should not specify it explicitly. Depending on the file extension (
.pug), the corresponding executable is invoked.
As you edit a
.jadefile, WebStorm invokes the file watcher which creates an
.htmlfile with the name of the processed
.jadefile and stores the generated
htmlcode in it.
Configuring syntax highlighting
You can configure Pug/Jade-aware syntax highlighting according to your preferences and habits.
In the Settings/Preferences dialog (Ctrl+Alt+S), go to .
Select the color scheme, accept the highlighting settings inherited from defaults or customize them as described in Configuring Colors and Fonts.