recursively include templates