Refractor getTemplateName function to avoid issue when namespace is bigger than 3 entries.
Merge pull request #5 from mantoine/master

Refractor getTemplateName function to avoid issue when namespace is bigg...