Get the template from: YAML or class

def template(self):
        """ Get the template from: YAML or class """

        # First try props
        if self.props.template:
            return self.props.template
        else:
            # Return the wtype of the widget, and we'll presume that,
            # like resources, there's a .html file in that directory
            return self.wtype