def _create_tags(ctx):
for (tag, info) in _TAGS.items():<EOL><INDENT>class_name = tag.title()<EOL>quote_, compact, self_closing, docs = info<EOL>def __init__(self, *childs, **attrs):<EOL><INDENT>TagBase.__init__(self, childs, attrs)<EOL><DEDENT>cls = type(class_name, (TagBase,), {<EOL>"<STR_LIT>": docs,<EOL>"<STR_LIT>": __init__<EOL>})<EOL>cls.QUOTE = quote_<EOL>cls.COMPACT = compact<EOL>cls.SELF_CLOSING = self_closing<EOL>ctx[class_name] = cls<EOL><DEDENT>
create all classes and put them in ctx