Answer the question
In order to leave comments, you need to log in
How to setup File Watcher for Slim in WebStorm?
We have a Slim templating engine and WebStorm IDE on Windows. The Slim plugin is installed, but it only adds syntax highlighting. From the documentation for Slim, I did not understand how to use the "slim --compile" command, so it is completely unclear how to create a rule for auto-compiling .slim files into .html files .
Answer the question
In order to leave comments, you need to log in
I can tell you how it's done in PHPStorm , they seem to be similar
, press the cross and add the SLIM
extension
, it looks like this to me:
File Watcher settings in RubyMine should be suitable for PhpStorm (most likely for WebStorm)
https://github.com/SteveBenner/rubymine/blob/maste...
I have such settings (html is saved in the same directory as slim source):
name: Slim
description: Renders Slim templates using the slimrb gem executable
program: C:\RailsInstaller\Ruby2.1.0\bin\slimrb.bat
arguments: -p $FilePath$ --trace
fileExtension: slim
checkSyntaxErrors: false
output: $FileDir$\$FileNameWithoutExtension$.html
outputFromStdout: true
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question