summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-09-26 17:09:05 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-09-26 17:09:05 -0700
commitc9ee67a5f624a3b6df0d0bbc5544871adf950e33 (patch)
tree65c9a6f12a739914d09f9270320180cd5aaa3860 /docs
parentf2befeccb0a9abe20dd1d3665087ddc154eb7c43 (diff)
downloadpyscss-c9ee67a5f624a3b6df0d0bbc5544871adf950e33.tar.gz
Support bare "..." on mixins, to allow arbitrary var injection.
Diffstat (limited to 'docs')
-rw-r--r--docs/syntax.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/syntax.rst b/docs/syntax.rst
index 408bc11..4cd21c9 100644
--- a/docs/syntax.rst
+++ b/docs/syntax.rst
@@ -432,6 +432,23 @@ Given that future versions of the reference compiler are likely to introduce
built-in list operations, the future of this feature is unclear.
+Mixin "injection"
+-----------------
+
+A mixin defined like this:
+
+ @mixin foo(...) {
+ // ...
+ }
+
+will accept **any** keyword arguments, which will be available as variables
+within the mixin.
+
+This behavior exists for historical reasons and due to the lack of a
+``**kwargs`` equivalent within Sass. Its usage makes mixin behavior harder to
+understand and you should not use it.
+
+
Unsupported Sass features
=========================