Example #1
0
 def replace(match):
     node = self.nodes[int(match.group(1))]
     filters = match.group(2).strip("|")
     node.set_html(match.group(3))
     return renderer.render(node, filters=filters)
Example #2
0
    def get_html(self, filters: List[str] = None) -> str:
        """Renders and returns HTML."""
        from mkapi.core.renderer import renderer

        return renderer.render(self, filters)  # type:ignore
Example #3
0
    def render(self) -> str:
        """Renders and returns HTML."""
        from mkapi.core.renderer import renderer

        return renderer.render(self)  # type:ignore