X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/f416df370e38f3df4d153d1e88984d03ee635fb6..34a9cd2a670e84771d1d54e6fd6af87bcb1c279c:/philo/templatetags/containers.py diff --git a/philo/templatetags/containers.py b/philo/templatetags/containers.py index bc04b9f..be94a3d 100644 --- a/philo/templatetags/containers.py +++ b/philo/templatetags/containers.py @@ -48,19 +48,9 @@ class ContainerNode(template.Node): # Otherwise it's a contentlet. try: contentlet = page.contentlets.get(name__exact=self.name) - if '{%' in contentlet.content or '{{' in contentlet.content: - try: - content = template.Template(contentlet.content, name=contentlet.name).render(context) - except template.TemplateSyntaxError, error: - if settings.DEBUG: - content = ('[Error parsing contentlet \'%s\': %s]' % (self.name, error)) - else: - content = settings.TEMPLATE_STRING_IF_INVALID - else: - content = contentlet.content + content = contentlet.content except ObjectDoesNotExist: - content = settings.TEMPLATE_STRING_IF_INVALID - content = mark_safe(content) + content = '' return content