Added templates inheritance support for components