Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document the `csrf()` helper function.

  • Loading branch information...
commit 2d399ab096e2bf91606e383d41c04991c0bcb3c8 1 parent 4f9c745
Vincent Driessen nvie authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  jingo/helpers.py
1  jingo/helpers.py
View
@@ -11,6 +11,7 @@
@register.function
@jinja2.contextfunction
def csrf(context):
+ """Equivalent of Django's ``{% crsf_token %}``."""
return jinja2.Markup(CsrfTokenNode().render(context))
Please sign in to comment.
Something went wrong with that request. Please try again.