X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..3829242e31f2516eb71d85bb08d69d1f4200b3e6:/src/librarian/builders/__init__.py diff --git a/src/librarian/builders/__init__.py b/src/librarian/builders/__init__.py index fcd9194..b1afe94 100644 --- a/src/librarian/builders/__init__.py +++ b/src/librarian/builders/__init__.py @@ -1,14 +1,13 @@ +from collections import OrderedDict from .txt import TxtBuilder -from .html import HtmlBuilder +from .html import HtmlBuilder, StandaloneHtmlBuilder, DaisyHtmlBuilder from .sanitize import Sanitizer -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), + ("sanitizer", Sanitizer), +])