Part of the problems is that you are trying to set an image to a
background-color instead of background.
I do not think you can assign a constant in addition to regular values. I
fixed this by using:

  !light_gray = #f0e0e4
  #header
    :background url(bg.png) repeat-x
      :color = !light_gray

Regards,
Brett

On 8/3/07, Gioele <[EMAIL PROTECTED]> wrote:
>
>
> I found two snippets that will make Haml 1.7 crash.
>
> When fed with this little file:
>
>   !light_gray = #f0e0e4
>   #header
>     :background-color = !light_gray url(bg.png) repeat-x
>
> Haml will crash with this message
>
>   NoMethodError: undefined method `[]' for :concat:Symbol
>   Backtrace:
>   ./script/../config/../vendor/plugins/stable/lib/sass/constant.rb:
> 209:in `insert_constant'
>   ./script/../config/../vendor/plugins/stable/lib/sass/constant.rb:
> 188:in `operationalize'
>   ...
>
> Haml will fail on these lines
>
>   !light_gray = #f0e0e4
>   #header
>     :background-color = !light_gray url(bg.png)
>
> and report this error
>
>   Sass::SyntaxError: Constant arithmetic error: "!light_gray
> url(bg.png)"
>
> --
> Gioele
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to