copy sub templates.