Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add better support for conditional styles and code reuse #3
In comparable systems, you can define a method which is called elsewhere, pass parameters, and conditionally add styles. GrooCSS should easily support this with a few additions.
For example, something like:
and elsewhere within a style-group:
This has been added. I've added the following within a test:
You can't create inner methods within a closure, so I've used a closure instead.