Skip to content

Commit

Permalink
Remove stray references
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Apr 10, 2024
1 parent cec9396 commit e69c376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/release-notes/2.x-changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
- Fixes https:/litestar-org/litestar/issues/2629
- Circumvents special casing needed in the routing logic for the static files app
- Removes the need for a ``static_files_config`` attribute on the app
- Removes the need for a special :meth:`~litestar.app.Litestar.url_for_static_asset`
- Removes the need for a special ``litestar.app.Litestar.url_for_static_asset``
method on the app since `route_reverse` can be used instead

Additionally:
Expand Down
7 changes: 4 additions & 3 deletions docs/usage/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,10 @@ Built-in callables
if you wish to insert the ``csrf_token`` into non-HTML based templates, or insert it into HTML templates not using a hidden input field but
by some other means, for example inside a special ``<meta>`` tag.

``url_for_static_asset``
URLs for static files can be created using the ``url_for_static_asset`` function. It's signature and behaviour are identical to
:meth:`app.url_for_static_asset <litestar.app.Litestar.url_for_static_asset>`.
``url_for`` for static files
For static file serving as provided by :func:`~litestar.static_files.create_static_files_router`,
``url_for`` can be used with the ``static`` handler name: ``url_for("static", file_name="style.css")``



Registering template callables
Expand Down

0 comments on commit e69c376

Please sign in to comment.