All of my work from commits: dd4a194, 692644a, 4a60203, 5de46bc, 152042d, 64a2d4e...
[philo.git] / templatetags / containers.py
index 8bb0c6b..c5fd445 100644 (file)
@@ -43,7 +43,7 @@ class ContainerNode(template.Node):
                        # Otherwise it's a contentlet.
                        try:
                                contentlet = page.contentlets.get(name__exact=self.name)
-                               if '{%' in contentlet.content:
+                               if '{%' in contentlet.content or '{{' in contentlet.content:
                                        try:
                                                content = template.Template(contentlet.content, name=contentlet.name).render(context)
                                        except template.TemplateSyntaxError, error: