Mine
public text v1 · immutableclass html_res(litesim_http_resource):
content = None
def handle_get(self,segments=[]):
return content
def gen_htmlres(content):
newclass = type('html_content',(html_res,),dict(content=content))
return newclass