add recursive template support
Merge pull request #1 from axa-ch/feature/recursive-templates

add recursive template support