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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/custom parser #459

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ It's a pun on the tagline.

# Talks and Podcasts

* [React Round Up](https://reactroundup.com/wrangle-your-css-in-js-for-peanuts-using-goober-ft-cristian-bote-rru-177) 馃憠 https://reactroundup.com/wrangle-your-css-in-js-for-peanuts-using-goober-ft-cristian-bote-rru-177
* ReactDay Berlin 2019 馃憠 https://www.youtube.com/watch?v=k4-AVy3acqk
* [PodRocket](https://podrocket.logrocket.com/) by [LogRocket](https://logrocket.com/) 馃憠 https://podrocket.logrocket.com/goober
* [ngParty](https://www.ngparty.cz/) 馃憠 https://www.youtube.com/watch?v=XKFvOBDPeB0
- [React Round Up](https://reactroundup.com/wrangle-your-css-in-js-for-peanuts-using-goober-ft-cristian-bote-rru-177) 馃憠 https://reactroundup.com/wrangle-your-css-in-js-for-peanuts-using-goober-ft-cristian-bote-rru-177
- ReactDay Berlin 2019 馃憠 https://www.youtube.com/watch?v=k4-AVy3acqk
- [PodRocket](https://podrocket.logrocket.com/) by [LogRocket](https://logrocket.com/) 馃憠 https://podrocket.logrocket.com/goober
- [ngParty](https://www.ngparty.cz/) 馃憠 https://www.youtube.com/watch?v=XKFvOBDPeB0

# Table of contents

Expand Down Expand Up @@ -285,7 +285,7 @@ const Title = styled('h1', React.forwardRef)`
`;
```

### `setup(pragma: Function, prefixer?: Function, theme?: Function, forwardProps?: Function)`
### `setup(pragma: Function, prefixer?: Function, theme?: Function, forwardProps?: Function, parser?: Function)`

The call to `setup()` should occur only once. It should be called in the entry file of your project.

Expand Down Expand Up @@ -381,6 +381,10 @@ setup(
);
```

#### With parser

This optional `parser` function overrides [the default parse function](https://github.com/cristianbote/goober/blob/master/src/core/parse.js). This allows for any number of customizations to styles being output.

### `css(taggedTemplate)`

- `@returns {String}` Returns the className.
Expand Down