recursively include templates

Allows templates to include other templates.