Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make handling of Girouette return vals more general #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

plexus
Copy link
Member

@plexus plexus commented Jul 23, 2021

Most of the time we get a [".class-name" {styling}] tuple, but we may also get a
CSSAtValue, or possibly any number of special Garden things. So instead of
special-casing these patterns, we walk whatever we get, replacing the classname
of the current token with :&. In a second pass we unpack the pattern [:& styling], this isn't necessary, but helps create more compact CSS.

Most of the time we get a [".class-name" {styling}] tuple, but we may also get a
CSSAtValue, or possibly any number of special Garden things. So instead of
special-casing these patterns, we walk whatever we get, replacing the classname
of the current token with `:&`. In a second pass we unpack the pattern `[:&
styling]`, this isn't necessary, but helps create more compact CSS.
@plexus
Copy link
Member Author

plexus commented Jul 23, 2021

Also add some more tests for undocumented features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant