Feature request for the URI Template functionality (in the client-side forms framework):
dot-separated template parts should be treated as nested object structures:
Current behaviour:
var t = new kp.Template("/test/{foo.id}");
t.expand({"foo": { "id": 5 }}); -> returns "/test/" instead of the more useful "/test/5"
t.expand({"foo.id": 5}); -> returns "/test/5" (which explains why the above does not work)
Suggested behaviour:
t.expand({"foo": { "id": 5}}); -> returns "/test/5";
To find the literal "foo.id" property, you should escape the dot in the template:
var t = new kp.template("/test/{foo\\.id}");
t.expand({"foo.id": 5}); -> returns "/test/5"