There is now a proposal to use URI Templates in HTML 5.