loops in templates
template inheritance