Drop lots of legacy code. Support Python 3.7-3.11.
[librarian.git] / src / librarian / elements / ref / __init__.py
1 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
3 #
4 from ..base import WLElement
5
6
7 class Ref(WLElement):
8     ASIDE = True
9     HTML_TAG = 'a'
10     
11     def txt_build(self, builder):
12         pass
13
14     def get_html_attr(self, builder):
15         return {
16             'class': 'reference',
17             'data-uri': self.attrib.get('href', ''),
18         }
19
20     def epub_build(self, builder):
21         pass