mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:16:02 -04:00
Allow using several custom template directories (#10587)
Allow using several directories in read_templates.
This commit is contained in:
parent
a933c2c7d8
commit
ae2714c1f3
7 changed files with 97 additions and 26 deletions
|
@ -677,7 +677,10 @@ class ModuleApi:
|
|||
A list containing the loaded templates, with the orders matching the one of
|
||||
the filenames parameter.
|
||||
"""
|
||||
return self._hs.config.read_templates(filenames, custom_template_directory)
|
||||
return self._hs.config.read_templates(
|
||||
filenames,
|
||||
(td for td in (custom_template_directory,) if td),
|
||||
)
|
||||
|
||||
|
||||
class PublicRoomListManager:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue