3 ms·
Yes, some configuration detail would be helpful. For instance, I can't find any custom Haml config, suggesting it's running with the defaults - in production mo
by urbanautomaton 14y ago
Yes, some configuration detail would be helpful. For instance, I can't find any custom Haml config, suggesting it's running with the defaults - in production mode this would mean that the output HTML is indented, while it wouldn't be in development or test. This has a noticeable performance effect, and it looks as though the same is true of Slim.
- judofyr 14y agoSlim defaults to ugly-mode: https://github.com/stonean/slim/blob/ae14457c596c963144810ced65ac9c275498bffd/lib/slim/engine.rb#L8 https://github.com/stonean/slim/blob/ae14457c596c963144810ce... Haml uses pretty-mode in development and ugly-mode in production.
- klaustopher 14y agoI was going with the defaults, and I was running it in development mode ... An issue on the page already pointed out, that the comparison to Slims ugly mode isn't really that fair. But I just went with the out-of-the-box config, as do most Haml projects I've come across