-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement "groupings" #15
Labels
Comments
|
Hmmmm, it could, but unsure we'd need it. Is mappings front-matter from a file? Or from Gather Content? Perhaps this is just an extra function that's called from the plugin? Collections would've do it right? |
https://www.npmjs.com/package/json-mapping
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just as with "mappings" we currently implement .... we could use grouping strings to group multiple fields into keys, this maybe just a modified 'mapping' functionality.
eg.
should we use "starts with" (hithercontent groups tabs in a given template under
Tab-Name_
, this could help us deal with some complex structures.alternately, we can also use:
might have to switch from simple indexing to minimatch for pattern matching... coming towards either a naming convention, or some flag mechanism to indicate when / which objects to apply these groupings to is part of design i have not yet considered.
overall it would be cool if we could create these conveniences and make the parsing of data into something of a 'middleware' so we could hook up to different content stores, and just write mini plugins for each one (reducing the cost / technical debt for swtiching to different content apis (gather content, contentful, eventually a sweet drupal experience outputting a restful api?)
@RobLoach thoughts?
The text was updated successfully, but these errors were encountered: