X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/9fb50c56dfb3588d8694c3d06061ec40572b8002..a991afcc5a1f18bbe332359f2c3c10be0ca2a11e:/templatetags/containers.py diff --git a/templatetags/containers.py b/templatetags/containers.py index 90debf6..7ed0bdc 100644 --- a/templatetags/containers.py +++ b/templatetags/containers.py @@ -32,9 +32,13 @@ class ContainerNode(template.Node): container_content = self.get_container_content(context) if not self.nodelist_main: - if container_content and self.as_var: + if self.as_var: context[self.as_var] = container_content return '' + + if not container_content: + return '' + return container_content if container_content: