-- |Create a matchable template with parameters (:param)
match :: B.ByteString -> Matcher
match template url =
    (isMatch, Parameters params)
    where
    (isMatch, params) = parse urlparts temparts []
    urlparts = B.split '/' url
    temparts = B.split '/' template

-- |Tries to match an URL against a template and returns any found parameters
match :: B.ByteString -> Matcher
match template url =
    (isMatch, Parameters params)
    where
    (isMatch, params) = parse urlparts temparts []
    urlparts = B.split '/' url
    temparts = B.split '/' template

-- |Tries to match an URL against a template and returns any found parameters
match template url =
    (isMatch, Parameters params)
    where
    (isMatch, params) = parse urlparts temparts []
    urlparts = B.split '/' url
    temparts = B.split '/' template

-- |Tries to match an URL against a template and returns any found parameters