basic uri template parser