def handle_quiz(self, tag: QqTag) -> str:
"""
Uses tags: choice, correct, comment
Example:
\question
Do you like qqmbr?
\quiz
\choice
No.
\comment You didn't even try!
\choice \correct
Yes, i like it very much!
\comment And so do I!
:param tag:
:return:
"""
if not tag.exists('md5id'):
tag.append_child(QqTag('md5id', [self.tag_hash_id(tag)]))
template = Template(filename=os.path.join(self.templates_dir,
"quiz.html"))
return template.render(formatter=self, tag=tag)
评论列表
文章目录