Permalink
Browse files

Document the `csrf()` helper function.

  • Loading branch information...
1 parent 4f9c745 commit 2d399ab096e2bf91606e383d41c04991c0bcb3c8 @nvie nvie committed Jan 10, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 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))

0 comments on commit 2d399ab

Please sign in to comment.