From: Jordan Date: Mon, 17 Jun 2019 12:52:43 +0000 (+1000) Subject: Remove staticfiles note X-Git-Tag: 0.12.2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F555%2Fhead;p=thirdparty%2Fstarlette.git Remove staticfiles note --- diff --git a/docs/templates.md b/docs/templates.md index dbb6c226..f75109f3 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -21,7 +21,7 @@ async def homepage(request): return templates.TemplateResponse('index.html', {'request': request}) ``` -Note that the [StaticFiles](https://www.starlette.io/staticfiles/) application must be mounted and configured to serve the templates, and the incoming `request` instance must be included as part of the +Note that the incoming `request` instance must be included as part of the template context. The Jinja2 template context will automatically include a `url_for` function,