A
A
Alexander2014-11-05 17:48:25
Ruby on Rails
Alexander, 2014-11-05 17:48:25

What to choose slim or haml?

I study RoR I planned to use haml but recently I came across but slim what to choose? what's better? And why some call them template engines, and some preprocessors. How right? and what's the difference?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vitaly Emelyantsev, 2014-11-06
@Gambala

I settled on slim: (1) it's faster, (2) it's more convenient to have tag parameters on multiple lines.
Preprocessors, they are also syntactic sugars - haml slim sass coffeescript - compile to html css js
Template engines - layout languages ​​with the ability to insert logic on Rails - erb, haml, slim

E
Eugene Burmakin, 2014-11-05
@Freika

Slim is a little more concise, as for me. These are preprocessors that compile to HTML.

V
Vitaly Sorokin, 2014-11-05
@VitalySorokin

The biggest difference between these preprocessors is compilation speed. At Slim'a it seems to be faster. The rest is a matter of habit. I advise you to try both preprocessors for yourself to decide which is more convenient for you.

B
Boris Penkovsky, 2014-11-06
@Able1991

Why doesn't anyone like yerb?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question