From 3ac4f48f821ea91c64d3ee967dcf54f98a94b0da Mon Sep 17 00:00:00 2001 From: Robert Schroll Date: Wed, 21 Feb 2018 15:13:47 -0800 Subject: [PATCH] Add version information to templates doc --- docs/source/reference/templates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/reference/templates.md b/docs/source/reference/templates.md index dc0455a2..905265e1 100644 --- a/docs/source/reference/templates.md +++ b/docs/source/reference/templates.md @@ -4,7 +4,7 @@ The pages of the JupyterHub application are generated from [Jinja](http://jinja. ## Custom Templates -JupyterHub will look for custom templates in all of the paths in the `JupyterHub.template_paths` configuration option, falling back on the [default templates](https://github.com/jupyterhub/jupyterhub/tree/master/share/jupyter/hub/templates) if no custom template with that name is found. This means you can override as many or as few templates as you desire. +JupyterHub will look for custom templates in all of the paths in the `JupyterHub.template_paths` configuration option, falling back on the [default templates](https://github.com/jupyterhub/jupyterhub/tree/master/share/jupyter/hub/templates) if no custom template with that name is found. (This fallback behavior is new in version 0.9; previous versions searched only those paths explicitly included in `template_paths`.) This means you can override as many or as few templates as you desire. ## Extending Templates @@ -14,7 +14,7 @@ In general, a child template can extend a base template, `base.html`, by beginni ``` {% extends "base.html" %} ``` -This works, unless you are trying to extend the default template for the same file name. In this case, refer to the base file with a `templates/` prefix. Thus, if you are writing a custom `base.html`, start it with +This works, unless you are trying to extend the default template for the same file name. Starting in version 0.9, you may refer to the base file with a `templates/` prefix. Thus, if you are writing a custom `base.html`, start it with ``` {% extends "templates/base.html" %} ```