Setup template inheritance