B
B
b2afb9242014-08-02 11:47:55
webstorm
b2afb924, 2014-08-02 11:47:55

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

3 answer(s)
S
Stepan, 2014-08-27
@xoma2

I can't figure it out either. If you figured it out please post how.

K
knotik, 2014-12-19
@knotik

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:
8e2f785689b74257b705865965a234ff.png

P
pashachee, 2015-01-22
@pashachee

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 question

Ask a Question

731 491 924 answers to any question