mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-14 11:21:13 +00:00
8 lines
246 B
Python
8 lines
246 B
Python
class HTMXMixin:
|
|
template_name_htmx: str | None = None
|
|
|
|
def get_template_name(self):
|
|
if self.request.htmx and self.template_name_htmx:
|
|
return self.template_name_htmx
|
|
else:
|
|
return self.template_name
|