From the first release:
**template-mode.el** is an emacs minor mode that allows you to bind keys to insert templates. As samples, I've got templates for function headers, function bodies, a file template and a couple of others. This was hacked together rather quickly... so documentation is a little sloppy.
This release incorporates a minor change to allow the automatic insertion of the filename into the template. You can get it here (version 1.1).