

@presentation.render_for(Icon)
def render_Icon(self, h, comp, *args):
    if (self.title is not None):
        (h << h.i(class_=self.icon, title=self.title))
        (h << self.title)
    else:
        (h << h.i(class_=self.icon, title=self.title))
    return h.root

dataset/ETHPy150Open Net-ng/kansha/kansha/board/view.py render_Icon/original