If you want to display the server-side functions of the templates ( _showand _list), they should not be in _attachments, because the show and list functions do not have access to attachments. In these functions, the variable thisis a Javascript object copied from the project document. this.templates.foowill be from a file templates/foo.htmlin your project.
(), . , . , , ; -. . ddoc.