add templates method
Merge pull request #8 from afnecors/templates

add templates method