See https://github.com/spf13/hugo/pull/3122
I have sketched a specification on how I think “custom output types” in Hugo will look like.
GitHub’s markdown editor is so much better than this forum’s, so I will keep the document and discussion on GitHub on this one. So, please read and comment.