What is the best alternative to Pug (previously Jade)?
Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
The dependency container schema of Slim is one of the biggest PROS and CONS of the framework. It is true that this schema brings so much flexibility to add anything, but another thing that is true is that you need to have strong bases of patterns, and an extensive knowledge of your libraries to convert it into a Slim dependency. See More
While it's true that Slim is a microframework, it's still too minimal. When used for throwaway projects or simple prototypes, it's perfect. But in the long run, it becomes less and less useful and you end up in implementing a full custom framework in trying to tackle all the missing features. See More
Rack is an interface used in Ruby frameworks used to group and order modules, which most of the time are Ruby classes, and specify between them. Slim uses a simple concept for it's middleware. By wrapping HTTP requests and responses it unifies the middleware into a single method call. See More
By using indentation rather than closing tags and eliminating curly braces, Haml is fast to code. For example This: <div id ="lower"> <div class="right column"> <div id="currentDate"><%= print_date %></div> </div> </div> Can be written as: %div#lower %div.right.column %div#currentDate= print_date See More