added "with context" or "without context" import/include modifiers
--HG--
branch : trunk
diff --git a/jinja2/nodes.py b/jinja2/nodes.py
index b3255d5..d0372e8 100644
--- a/jinja2/nodes.py
+++ b/jinja2/nodes.py
@@ -265,12 +265,12 @@
class Include(Stmt):
"""A node that represents the include tag."""
- fields = ('template',)
+ fields = ('template', 'with_context')
class Import(Stmt):
"""A node that represents the import tag."""
- fields = ('template', 'target')
+ fields = ('template', 'target', 'with_context')
class FromImport(Stmt):
@@ -284,7 +284,7 @@
The list of names may contain tuples if aliases are wanted.
"""
- fields = ('template', 'names')
+ fields = ('template', 'names', 'with_context')
class Trans(Stmt):