mozilla/kuma — pull request #377 by ubernostrum (2012-07-10 16:23:55+00:00)
Title: Add a method to Attachment to return HTML for embedding the file.

This adds a 'get_embed_html()' method to Attachment, which uses the
mime-type of the current revision to select a template (in order of
decreasing specificity, down to a base 'generic' template), and render
it, to provide the initial HTML for embedding a file into a document.