Minimal RFC 6570 (level 1) URI template support: simple {var} expressions.
iex> Noizu.MCP.UriTemplate.match("db://{table}/schema", "db://users/schema")
{:ok, %{table: "users"}}
iex> Noizu.MCP.UriTemplate.match("db://{table}/schema", "db://users/data")
:nomatch
Summary
Functions
Expand a template with the given variables.
Match a URI against a template; returns captured variables atom-keyed.
Variable names (atoms) appearing in a template, in order.
Functions
Expand a template with the given variables.
Match a URI against a template; returns captured variables atom-keyed.
Variable names (atoms) appearing in a template, in order.