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.
HTTP Streaming is a technique that keeps a connection between the web server and the web client constantly open. When the server has new information, it's immediately pushed to the client. This technique is used to considerably increase loading times, because using HTTP Streaming the web app can start rendering parts of the view that do not require any complicated calculations (for example CSS files) immediately. But to use HTTP Streaming in a Ruby app you need a template engine that supports it, fortunately Slim fully supports HTTP Streaming. See More
Haml uses indentation to define structure, rather than closing tags. Though this, in most cases, makes code more efficient to write, it can also cause problems. Being off by one space can cause an error or change the structure of the code. See More
Haml (HTML abstraction markup language) is based on one primary principle: markup should be beautiful. See More
Winnie Brockett's Experience
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
Another token based system with all of the logic, looping and variable control that other engines provide. But in addition it supports some more advanced page composition elements e.g. block inheritance, includes, layout inheritance, custom tags and macros — all absolutely perfect for a CMS where pages are typically composed of a series of “building blocks”. Reference: link See More