3 ms·
A template engine for HTML is unavoidable if you're using a framework. It's important to select the one you use carefully. I used Haml until I found Slim. Haml
by vinceguidry 13y ago
A template engine for HTML is unavoidable if you're using a framework. It's important to select the one you use carefully. I used Haml until I found Slim. Haml syntax vagaries bit me more than Slim's did.
I love Coffeescript and use it whenever I can, for the reason that the compiler output generated by it is better than my own Javascript. I consider the complexity of the added layer to be worth it. 95% of the time Coffeescript saves me time writing, and the 5% of the time spent debugging is made easier with the tool at coffeescript.org. My javascript workflow has only been enhanced by Coffeescript, not hurt. Then again, I don't write large, sprawling programs in Javascript and consider it a smell when it does start getting complex.
I can't say the same about Slim, it hasn't been an unqualified boon, but still overall I feel it's an improvement.