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

Subroutes #28

Merged
merged 16 commits into from
Jan 4, 2018
Merged

Subroutes #28

merged 16 commits into from
Jan 4, 2018

Conversation

AngryLawyer
Copy link
Contributor

This adds the ability to use subroutes to the Collections framework.

The general plan has been to provide helper functions that are backed by the current subgroup system. Paths with <triangle_bracket> items in them can be substituted by using the 'collectionAtSubpath' and 'itemAtSubpath' helpers - further details can be found in the README or the tests files.

I am not 100% sure on the naming of some of the functions - they're a bit verbose. Also, if people would prefer a different matcher rather than triangle brackets, then they should probably say.

Fixes #16

@JakeSidSmith
Copy link
Contributor

I'd prefer the react router syntax, as it's more flexible, and would keep things consistent: https://reacttraining.com/react-router/web/api/Route/component

Copy link
Contributor

@lCharlie123l lCharlie123l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and functionality look great :) not that fussed with picking the triangle syntax either but might be worth getting other opinions

@AngryLawyer AngryLawyer merged commit 077f8c8 into v0.2.0 Jan 4, 2018
@AngryLawyer AngryLawyer deleted the subroutes branch January 4, 2018 10:33
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.

None yet

3 participants