def __getattr__(self, name):
        """
        Provides a default render method for all tokens.

        Any token without a custom render method will simply be rendered by
        self.render_inner.

        If name does not start with 'render_', raise AttributeError as normal,
        for less magic during debugging.

        This method would only be called if the attribute requested has not
        been defined. Defined attributes will not be overridden.

        I still think this is heavy wizardry.
        Let me know if you would like this method removed.
        """
        if not name.startswith('render_'):
            msg = '{cls} object has no attribute {name}'.format(cls=type(self).__name__, name=name)
            raise AttributeError(msg).with_traceback(sys.exc_info()[2])
        return self.render_inner
def __getattr__ ( self , name ) : if not name . startswith ( 'render_' ) : msg = '{cls} object has no attribute {name}' . format ( cls = type ( self ) . __name__ , name = name ) raise AttributeError ( msg ) . with_traceback ( sys . exc_info ( ) [ 2 ] ) return self . render_inner
Provides a default render method for all tokens.

        Any token without a custom render method will simply be rendered by
        self.render_inner.

        If name does not start with 'render_', raise AttributeError as normal,
        for less magic during debugging.

        This method would only be called if the attribute requested has not
        been defined. Defined attributes will not be overridden.

        I still think this is heavy wizardry.
        Let me know if you would like this method removed.