A view decorator to extend another view class or function to itself
        It will inherit all its methods and propeties and use them on itself

        -- EXAMPLES --

        class Index(Pylot):
            pass

        index = Index()

        ::-> As decorator on classes ::
        @index.extends_
        class A(object):
            def hello(self):
                pass

        @index.extends_
        class C()
            def world(self):
                pass

        ::-> Decorator With function call ::
        @index.extends_
        def hello(self):
            pass

def extends_(cls, kls):
        """
        A view decorator to extend another view class or function to itself
        It will inherit all its methods and propeties and use them on itself

        -- EXAMPLES --

        class Index(Pylot):
            pass

        index = Index()

        ::-> As decorator on classes ::
        @index.extends_
        class A(object):
            def hello(self):
                pass

        @index.extends_
        class C()
            def world(self):
                pass

        ::-> Decorator With function call ::
        @index.extends_
        def hello(self):
            pass

        """
        if inspect.isclass(kls):
            for _name, _val in kls.__dict__.items():
                if not _name.startswith("__"):
                    setattr(cls, _name, _val)
        elif inspect.isfunction(kls):
            setattr(cls, kls.__name__, kls)
        return cls