Project
Ruby
Priority
Normal
Type
Feature
Fix versions
RubyMine 4.5 EAP (build 118.472)
State
Fixed
Assignee
Anna Kutarba
Subsystem
Editing
Affected versions
No Affected versions
Fixed in build
118.441  
  • Created by   Yury Korolev
    19 months ago (20 Oct 2010 06:16)
  • Updated by   Dennis Ushakov
    9 days ago (16 May 2012 16:59)
 
RUBY-6967 add slim templating support
55
Issue is visible to: All Users
  The issue is visible to the selected user group only
Slim is a fast, lightweight templating engine for Rails 3
http://github.com/stonean/slim
Comments (36)
 
History
 
Linked Issues (?)
 
Jon Jenkins
  Jon Jenkins
02 Jul 2011 00:13
10 months ago
Yes, please :)
pivo
  pivo
17 Oct 2011 16:44
7 months ago
+1
Michael
  Michael
17 Oct 2011 16:45
7 months ago
+4
Edward Rudd
  Edward Rudd
23 Oct 2011 22:44
7 months ago
This has become more important now that one of the applications I work on has switched entirely to using SLIM as the template engine.
Nikos Dimitrakopoulos
  Nikos Dimitrakopoulos
01 Nov 2011 18:02
6 months ago
+10 :)
Eric Cohen
  Eric Cohen
01 Nov 2011 18:03
6 months ago
+0.5 I appreciate the existing haml support

EDIT: +10 after I saw speed benchmarks!! Check em out at: https://github.com/stonean/slim (scroll down to benchmarks section)
David Zilioli
  David Zilioli
09 Nov 2011 12:23
6 months ago
+1
AndruhaFirst
  AndruhaFirst
09 Nov 2011 18:20
6 months ago
+1
Jeremy Haile
  Jeremy Haile
14 Nov 2011 20:57
6 months ago
+1
Brookes Stephens
  Brookes Stephens
14 Nov 2011 21:14
6 months ago
+1
Jay Crouch
  Jay Crouch
18 Nov 2011 00:08
6 months ago
+1
Ankur Sethi
  Ankur Sethi
22 Nov 2011 01:29
6 months ago
This should be easier than HAML to implement
Jeremy Jackson
  Jeremy Jackson
22 Nov 2011 04:21
6 months ago
+1
Stepan Filatov
  Stepan Filatov
26 Dec 2011 13:43
4 months ago
+1 (i need it)
Ankur Sethi
  Ankur Sethi
26 Dec 2011 18:33
4 months ago
The nice thing is that HAML is more strict on whitespace than SLIM. I just mark the files as HAML and my SLIM files are compliant, only SLIM doesn't support the %
Jeremy Haile
  Jeremy Haile
13 Jan 2012 04:33
4 months ago
Oleg - any idea on when we might see this added?
Oleg Shpynov
  Oleg Shpynov
13 Jan 2012 09:54
4 months ago
Most likely we'll try to add experimental highlighting support for 4.0.
dolzenko
  dolzenko
15 Jan 2012 18:28
4 months ago
+1
Ayumu Sato
  Ayumu Sato
24 Jan 2012 06:53
4 months ago
+1
Carlo Bertini
  Carlo Bertini
26 Jan 2012 14:03
3 months ago
+1 i love slim :D
Howard
  Howard
29 Feb 2012 09:02
2 months ago
+1
David Rosen
  David Rosen
06 Mar 2012 03:43
2 months ago
How'd they make SLIM? Well, first they took HAML and then they made it MORE AWESOME.

True story.
Dmitrii
  Dmitrii
09 Mar 2012 17:53
2 months ago
When?
Dualsoul
  Dualsoul
28 Mar 2012 23:36
8 weeks ago
+1
Jerzy Sładkowski
  Jerzy Sładkowski
11 Apr 2012 12:50
6 weeks ago
It's a must have feature in next release RubyMine! Please!
Alexander Zolotko
  Alexander Zolotko
12 Apr 2012 02:42
6 weeks ago
+1
Oleg Sukhodolsky
  Oleg Sukhodolsky
16 Apr 2012 18:49
5 weeks ago
I've started work on the plugin. But since I do not use Slim in day-to-day development links to existing projects which use
it would be helpful for testing. Otherwise I will write my own (tiny) tests which (most likely) will not be very representative.
So, any links are welcome ;)
Jerzy Sładkowski
  Jerzy Sładkowski
16 Apr 2012 20:15
5 weeks ago
Ура :)
Ok, you can find some helpful information here: http://slim-lang.com/docs.html
and here: http://rdoc.info/github/stonean/slim/master/frames
of course on official page too: https://github.com/stonean/slim
Adrian Madrid
  Adrian Madrid
16 Apr 2012 20:33
5 weeks ago
The sidekiq gem uses slim for its web component. Simple and common use case I think.
Jeremy Jackson
  Jeremy Jackson
16 Apr 2012 20:38
5 weeks ago
I've marked my slim files as haml, because they're somewhat similar in syntax/highlighting – although they differ considerably it at least provides some syntax.. you may want to start with something similar to that?
Ankur Sethi
  Ankur Sethi
16 Apr 2012 20:51
5 weeks ago
yes HAML marks up probably 90% - 95% of the SLIM syntax nicely. It only misses some variable as being used.

I will 'donate' my view to this: git://gist.github.com/2399888.git

It is code for a private project, hopefully it does not make you cringe and is also complex enough.

I will reference HAML for this.

== are not marked as valid, example: selected_quote_ids variable is marked as not used
the obvious
html_tag =
doesn't have support because HAML expects the %

Those are probably the biggest issues, otherwise HAML markup is pretty good for SLIM.
Ankur Sethi
  Ankur Sethi
16 Apr 2012 20:53
5 weeks ago
Also the javascript: instead of :javascript
And since SLIM Is less strict about whitespace, the HAML highlighter marks invalid non 2 space indenting, which slim does accept, but I usually just stick to it to make it look nice anyway.
Dmitrii
  Dmitrii
29 Apr 2012 16:47
3 weeks ago
How is going?
Can we check beta version of slim support?
Oleg Sukhodolsky
  Oleg Sukhodolsky
03 May 2012 10:04
3 weeks ago
For now I have Slim's parsing, basic integration with Ruby and highlighting.
How it will be available in near future through EAP.
Christopher Coleman
  Christopher Coleman
05 May 2012 18:40
2 weeks ago
+1 I love slim
Oleg Sukhodolsky
  Oleg Sukhodolsky
14 May 2012 14:39
11 days ago
Ok, the first draft is ready for testing.
Related Changes
Resolved Date
11 days ago (14 May 2012 14:39)
State
SubmittedFixed
Assignee
Oleg SukhodolskyAnna Kutarba