Skip to content

NamespaceMap from Template #12

Description

@kjetilk

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions