keywords

keywords($args)

Returns the map of named arguments passed to a function or mixin that takes a variable argument list. The argument names are strings, and they do not contain the leading $.

Examples:

@mixin foo($args...) {
  @debug keywords($args); //=> (arg1: val, arg2: val)
}

@include foo($arg1: val, $arg2: val);

Parameters:

  • $args (ArgList)

Returns:

  • (Map)

Raises:

  • (ArgumentError) if $args isn’t a variable argument list
doc_Sass
2016-11-11 13:09:12
Comments
Leave a Comment

Please login to continue.