X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3be0713303de6ba83335a530894d75b86027e042..4bf662d52cdef84ebc3eea50213f576a72b30abf:/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: