class HtmlRender:
def __init__(
self
) -> None:
pass
def output(
self,
html: str
) -> str:
template = "
{}"
return template.format(html)
def error(
self,
html: str
) -> str:
template = """
{}
"""
return template.format(html)
def budget(
self,
text: str,
category: str,
color: str
) -> str:
html = f"""
{text}
{category}
"""
return html if text != "" else ""