summaryrefslogtreecommitdiff
path: root/docs/narr/templates.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2017-04-30 18:26:11 -0500
committerGitHub <noreply@github.com>2017-04-30 18:26:11 -0500
commit80973f86368ee9bc8f7d8c87d32207cec83d9310 (patch)
treeabf20accdb77f6127a5480bf023231c7b0b6706b /docs/narr/templates.rst
parent87af11c5e33b8c03d57a8b571f0b152efe866af1 (diff)
parent9c15a8eac2848cc7a81f174ecf7a6c63be323f51 (diff)
downloadpyramid-80973f86368ee9bc8f7d8c87d32207cec83d9310.tar.gz
pyramid-80973f86368ee9bc8f7d8c87d32207cec83d9310.tar.bz2
pyramid-80973f86368ee9bc8f7d8c87d32207cec83d9310.zip
Merge pull request #3019 from mmerickel/fixes/csrf-decoupling-2854
Decouple CSRF protection from the session machinery (replaced #2854)
Diffstat (limited to 'docs/narr/templates.rst')
-rw-r--r--docs/narr/templates.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst
index 6b3b5fcce..4eadbd2f0 100644
--- a/docs/narr/templates.rst
+++ b/docs/narr/templates.rst
@@ -228,6 +228,10 @@ These values are provided to the template:
provided if the template is rendered as the result of a ``renderer=``
argument to the view configuration being used.
+``get_csrf_token()``
+ A convenience function to access the current CSRF token. See
+ :ref:`get_csrf_token_in_templates` for more information.
+
``renderer_name``
The renderer name used to perform the rendering, e.g.,
``mypackage:templates/foo.pt``.