bigtop/bigtop — Issue #2: parameterised route creation
Author: jedws
Created: 2011-12-28 07:43:33+00:00
State: open

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