added templates like for the other attributes
Merge pull request #4 from delahaye/master

which fixes issue #2