Slim: pretty and ugly
ruby-on-rails, slim-lang
Solution
Seems like Slim uses Temple for template compilation. Temple provides the `set_default_options` method to Slim::Engine, documented and explained here.
The corresponding Temple code that does the 'pretty' transformations (tab indentations and reordered attributes) to the compiled HTML appears to be here: https://github.com/judofyr/temple/blob/master/lib/temple/html/pretty.rb
I presume ugly just refers to having the pretty option set to false. The article you referenced is comparing performance, so the relevance of the pretty option to performance appears to be that the extra processing increases the overhead when generating HTML.
Problem
In the article, which explains difference in performance perspective of rails template engines I find `slim pretty` and `slim ugly` terms. Can you explain difference between this?