def render(self, **kwargs):
for name, child in self._children.items():<EOL><INDENT>child.render(**kwargs)<EOL><DEDENT>figure = self.get_root()<EOL>assert isinstance(figure, Figure), ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>figure.script.add_child(Element(<EOL>self._template.render(this=self, kwargs=kwargs)),<EOL>name=self.get_name())<EOL>
Renders the HTML representation of the element.