That doesn't work correctly for the docs. Seems like you need to document both entities, the template and the template function.
![algo](https://f.cloud.github.com/assets/288976/1752102/16da2176-660e-11e3-97ac-cf366cf6dc2c.jpg)