I just had a look at Data::HAL, and it seems they are using URI::Template to create a namespacemap using, so that e.g. http://example.org/foo/{bar} becomes a pair
bar => 'http://example.org/foo/'
and I figured this would a reasonable heuristic to add as a coercion to Types::Namespace, which I maintain. But then, I figured, it might be a nicer if URI::Template had a method that could do that. So that the coercion I add simply takes the result of that method and gives it to URI::NamespaceMap's add_mapping method
So, that'd be my feature suggestion :-)
I just had a look at Data::HAL, and it seems they are using URI::Template to create a namespacemap using, so that e.g.
http://example.org/foo/{bar}becomes a pairand I figured this would a reasonable heuristic to add as a coercion to Types::Namespace, which I maintain. But then, I figured, it might be a nicer if URI::Template had a method that could do that. So that the coercion I add simply takes the result of that method and gives it to URI::NamespaceMap's add_mapping method
So, that'd be my feature suggestion :-)