Answer the question
In order to leave comments, you need to log in
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
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
Slim is a little more concise, as for me. These are preprocessors that compile to HTML.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question