Permalink
Browse files

Damn you Sphinx

  • Loading branch information...
1 parent d464d08 commit 53278a3238ac74775527fa217deb9fe8b7ba69fe @mitsuhiko mitsuhiko committed Jan 24, 2011
Showing with 6 additions and 3 deletions.
  1. +3 −1 jinja2/ext.py
  2. +3 −2 jinja2/sandbox.py
View
4 jinja2/ext.py
@@ -103,7 +103,9 @@ def parse(self, parser):
def attr(self, name, lineno=None):
"""Return an attribute node for the current extension. This is useful
- to pass constants on extensions to generated template code::
+ to pass constants on extensions to generated template code.
+
+ ::
self.attr('_my_attribute', lineno=lineno)
"""
View
5 jinja2/sandbox.py
@@ -98,8 +98,9 @@ def safe_range(*args):
def unsafe(f):
- """
- Mark a function or method as unsafe::
+ """Marks a function or method as unsafe.
+
+ ::
@unsafe
def delete(self):

0 comments on commit 53278a3

Please sign in to comment.