In plugins/write I am told that
%destsourceshash records the name of the source file used to create each destination file. The key is the output filename (ie, "foo/index.html"), and the value is the source filename that it was built from (eg, "foo.mdwn").
but that's not what I see happening. I see a hash that maps the output filename (eg., "foo/index.html") to a source page name (eg., "foo").
I need an additional visit to
%pagesources to get from "foo"
It seems to be consistent and happily working that way, so maybe the description in write is the only mistake. Have I missed something?