diff --git a/ajax/__init__.py b/ajax/__init__.py
index 12eb4a2..44f5989 100644
--- a/ajax/__init__.py
+++ b/ajax/__init__.py
@@ -21,8 +21,6 @@ $Id$
"""
from zope.app.pagetemplate import ViewPageTemplateFile
-from zope.formlib.namedtemplate import NamedTemplateImplementation
-innerHtml = NamedTemplateImplementation(
- ViewPageTemplateFile('innerHtml.pt'))
+innerHtml = ViewPageTemplateFile('innerHtml.pt')
diff --git a/ajax/dojo/configure.zcml b/ajax/dojo/configure.zcml
index 250c801..c8221d2 100644
--- a/ajax/dojo/configure.zcml
+++ b/ajax/dojo/configure.zcml
@@ -25,11 +25,4 @@
menu="zmi_views" title="Contents"
/>
-
-
-
-
diff --git a/ajax/innerHtml.pt b/ajax/innerHtml.pt
index 5fd4e9a..2c38fb2 100644
--- a/ajax/innerHtml.pt
+++ b/ajax/innerHtml.pt
@@ -1,4 +1 @@
-
-
-
+
diff --git a/container/base.py b/container/base.py
index 9c83613..b8a8bc3 100644
--- a/container/base.py
+++ b/container/base.py
@@ -38,10 +38,13 @@ class ContainerView(JustContents):
# informations for the ajax.inner.html view (template):
- def innerHtml_template(self):
+ @Lazy
+ def template(self):
basicView = zapi.getMultiAdapter((self.context, self.request),
Interface, name=u'contents.html')
return basicView.index
- innerHtml_macro = 'contents'
+ @Lazy
+ def macro(self):
+ return self.template.macros['contents']
diff --git a/container/configure.zcml b/container/configure.zcml
index 8375724..b7d33e5 100644
--- a/container/configure.zcml
+++ b/container/configure.zcml
@@ -14,15 +14,6 @@
menu="zmi_views" title="Contents"
/>
-
-