/~fonts/my.pdf
I like it because:
- URI parser can detect that "
~fonts
" makes no sense unless the MIME type is PDF. - It doesn't mess the URI parameters which are about the document itself (not its metadata).
- It's easy to extend with other functions like word count or whatever, with no risk to create incompatible options.
/broken.pdf/error.html
But meanwhile I had to find a workaround for displaying directories: a pseudo
-.html
document. So we could get an unified way to display metadata through some kind of "service" (including errors):
/~fonts/my.pdf
/~error/broken.pdf
Or, with Safari:
/~fonts/my.pdf/-.html
/~error/broken.pdf/-.html
No comments:
Post a Comment