Skip to content

Commit

Permalink
adding mixins to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredly committed Jun 19, 2010
1 parent b5e9c99 commit 802af41
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.rst
Expand Up @@ -54,6 +54,23 @@ with this, via the `spritemap(fn)` call. For example::
width: $other_button.width()
height: $other_button.height()

Mix-ins!!
---------

There is currently only partial mixin support -- arguments are not yet
implemented. But they will be...sometime soon. Anyway, the syntax for a macro
is [currently] pretty pythonic::

def macro:
color: red
border-width: 5px - 1px

body:
$macro

This syntax may change, though, b/c conceivably "def macro:blah" could refer
to the CSS "def macro { blah }", so there is some inconsistent magic going in.

Nutshell
========

Expand Down

0 comments on commit 802af41

Please sign in to comment.