This feature is implemented on edge haml & sass. This syntax goes like so:
=mixin(!arg1, !arg2 = "default-value")
  :foo= !arg1
  :bar= !arg2

For a look into the sorts of things that can be accomplished with the new
sass features some of the following sass examples:

   -
   
http://github.com/chriseppstein/compass/blob/master/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass

   - http://compass-style.org/hl/application.sass

Chris

On Fri, Jan 23, 2009 at 1:29 PM, andysky <[email protected]> wrote:

>
> Is there any way to have a mixin act more like a method with
> arguments?  Something like:
> ----
> =border-radius( arg )
>  :-moz-border-radius $arg
>  :-webkit-border-radius $arg
> ----
>
> and then, to include it, eg:
> ----
> #sidebar
>  +border-radius 10px
> ----
>
> >
>

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