In my opinion, :ugly should always be true. It's way faster. formatted
output is either for debugging or stroking your geek ego. I set it to true
in environment.rb.

chris

On Mon, May 10, 2010 at 12:02 PM, Chris Hanks <christopher.m.ha...@gmail.com
> wrote:

> Hi -
>
> I'm just now playing with HAML in Rails 3 and really enjoying it (and
> congratulations on the 3.0.0 release).
>
> Question, though - I get why the :ugly option defaults to false on the
> development environment and true on production, but why is it false on
> test? Is there some reason you'd want the indented presentation there?
>
> I only have a few integration specs right now, but their running time
> drops by about 25% if I throw the line in my initializer:
>
> Haml::Template.options[:ugly] = true if Rails.env.test?
>
> Just curious as to whether there's something I'm missing, or if this
> will come back to bite me later.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to h...@googlegroups.com.
> To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to