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

parameterised route creation #2

Open
jedws opened this issue Dec 28, 2011 · 1 comment
Open

parameterised route creation #2

jedws opened this issue Dec 28, 2011 · 1 comment
Assignees

Comments

@jedws
Copy link

jedws commented Dec 28, 2011

we have a few cases where we have routes that share a common root. At the moment it is non-trivial to add a common root part to a parent.

as all descendants of Path all define the same builder (:/:) methods, simply defining them on Path itself allows us to very easily create builder methods that use those on any Path:

def addRoot[P<: Path](p: P) = "root" :/: p
@ghost ghost assigned noelwelsh Jan 7, 2012
@noelwelsh
Copy link
Member

I'll take a look. Routes support some composition, but perhaps not in the best places.

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

No branches or pull requests

2 participants