def inner_fidget(*args, **kwargs):
    """
    define a ValidWidget class as an idiomatic inner widget
    :param args: arguments forwarded to the template
    :param kwargs:  arguments forwarded to the template
    """

    def ret(cls):
        cls.__is_inner__ = cls.template(*args, **kwargs)
        return cls

    return ret