web_fragments/fragment.py
def to_dict(self):
        """
        Returns the fragment in a dictionary representation.
        """
        return {
            'content': self.content,
            'resources': [r._asdict() for r in self.resources],  # pylint: disable=W0212
            'js_init_fn': self.js_init_fn,
            'js_init_version': self.js_init_version,
            'json_init_args': self.json_init_args
        }
def to_dict(self):
        return {
            'content': self.content,
            'resources': [r._asdict() for r in self.resources],  # pylint: disable=W0212
            'js_init_fn': self.js_init_fn,
            'js_init_version': self.js_init_version,
            'json_init_args': self.json_init_args
        }
def to_dict ( self ) : return { 'content' : self . content , 'resources' : [ r . _asdict ( ) for r in self . resources ] , # pylint: disable=W0212 'js_init_fn' : self . js_init_fn , 'js_init_version' : self . js_init_version , 'json_init_args' : self . json_init_args }
Returns the fragment in a dictionary representation.
Returns the fragment in a dictionary representation .