[add] Decoupled output from mode. Template assembly is no longer an
integral part of viewArticle but a function that will be called by
whichever mode requires it.