Rewrites URL generation to allow parameters to be optional or required for a resource or its children, as per #8.