+from collections import OrderedDict
from .txt import TxtBuilder
-from .html import HtmlBuilder
+from .html import HtmlBuilder, StandaloneHtmlBuilder, DaisyHtmlBuilder
from .sanitize import Sanitizer
+from .daisy import DaisyBuilder
-builders = [
- TxtBuilder,
- HtmlBuilder,
- Sanitizer,
-]
-
-
-def get_builder_class(builder_id):
- return next(b for b in builders if b.identifier == builder_id)
+builders = OrderedDict([
+ ("txt", TxtBuilder),
+ ("html", HtmlBuilder),
+ ("html-standalone", StandaloneHtmlBuilder),
+ ("html-daisy", DaisyHtmlBuilder),
+ ("daisy", DaisyBuilder),
+ ("sanitizer", Sanitizer),
+])