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?
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.
Its just the way the resulting html is rendered:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With