+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
from ..base import WLElement
class Ref(WLElement):
+ ASIDE = True
+ HTML_TAG = 'a'
+
def txt_build(self, builder):
pass
- def html_build(self, builder):
- pass
+ def get_html_attr(self, builder):
+ return {
+ 'class': 'reference',
+ 'data-uri': self.attrib.get('href', ''),
+ }
def epub_build(self, builder):
pass
-