You can't use null, it doesn't exist yet. (Pun intended)
The reason you're getting a syntax error is that optional arguments cannot
be provided unless all the previous arguments are specified like so:

+p("", "", "","1")

One feature I'd like to see added to Sass is keyword argument support for
mixins. There are a couple of ways this could be addressed:

1) as sub properties like so:

+p
  a: 1
  d= 3px * 1em / 12px

2) as explicit params:

+p(!a = 1, !d = 3px * 1em / 12px)

Both have benefits and drawbacks, which is why we've not done either yet ;-)

chris

On Wed, Sep 16, 2009 at 2:49 PM, joneff <[email protected]> wrote:

>
> Well, if I knew, I could use null instead of "" and it would drop the
> lines, I wouldn't have created the mixin in the first place.
>
> I also like the idea of null-ifying the values. I will use this and
> see how it goes.
>
> While we are at it, do you know why this
>
> =p(!a = "", !b = "", !c = "", !d = "")
>  do something
>
> +p(,,,"1")
>
> produces triggers an error?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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