Skip to content

Commit 074a774

Browse files
committed
Add template_file to traitlets
1 parent ef1412c commit 074a774

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

binderhub/app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ def _google_analytics_deprecation(self, change):
143143
f"Setting {change.owner.__class__.__name__}.{change.name} is no longer supported. Use {change.owner.__class__.__name__}.extra_footer_scripts to load Google Analytics JS directly"
144144
)
145145

146+
template_file = Unicode(
147+
"page.html",
148+
help="""
149+
The template file to be used when rendering the web page.
150+
""",
151+
config=True,
152+
)
153+
146154
about_message = Unicode(
147155
"",
148156
help="""

binderhub/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get(self):
3939
"binderVersion": binder_version,
4040
}
4141
self.render_template(
42-
"page.html",
42+
self.settings["template_file"],
4343
page_config=self.page_config,
4444
extra_footer_scripts=self.settings["extra_footer_scripts"],
4545
opengraph_title=self.opengraph_title,

0 commit comments

Comments
 (0)