attributes from ancestors require this-> when using templates