Jasper Op de Coul <jas...@infrae.com> added the comment:

I tested it, passing a reference to the actual template is working. 

I added a patch for the bfgsite example application to use this new syntax.
This is what I based my template code on, and  it still uses the
doctype-in-macro way.
However, it seems the bfgsite example still uses chameleon 1.1.1, so don' t
apply it yet.

Thanks
Jasper

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue139>
__________________________________
Index: bfgsite/views/templates/paste_entry.pt
===================================================================
--- bfgsite/views/templates/paste_entry.pt	(revision 8509)
+++ bfgsite/views/templates/paste_entry.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
     
Index: bfgsite/views/templates/areyousure.pt
===================================================================
--- bfgsite/views/templates/areyousure.pt	(revision 8509)
+++ bfgsite/views/templates/areyousure.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
     <div id="content">
Index: bfgsite/views/templates/tutorial.pt
===================================================================
--- bfgsite/views/templates/tutorial.pt	(revision 8509)
+++ bfgsite/views/templates/tutorial.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/tutorialbin_manage.pt
===================================================================
--- bfgsite/views/templates/tutorialbin_manage.pt	(revision 8509)
+++ bfgsite/views/templates/tutorialbin_manage.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/profile_edit.pt
===================================================================
--- bfgsite/views/templates/profile_edit.pt	(revision 8509)
+++ bfgsite/views/templates/profile_edit.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/pastebin.pt
===================================================================
--- bfgsite/views/templates/pastebin.pt	(revision 8509)
+++ bfgsite/views/templates/pastebin.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/index.pt
===================================================================
--- bfgsite/views/templates/index.pt	(revision 8509)
+++ bfgsite/views/templates/index.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="headinclude">
     <script type="text/javascript" src="http://www.google.com/jsapi";></script>
Index: bfgsite/views/templates/login.pt
===================================================================
--- bfgsite/views/templates/login.pt	(revision 8509)
+++ bfgsite/views/templates/login.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
     <div id="content">
Index: bfgsite/views/templates/documentation.pt
===================================================================
--- bfgsite/views/templates/documentation.pt	(revision 8509)
+++ bfgsite/views/templates/documentation.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
     <div id="content">
Index: bfgsite/views/templates/tutorialbin_addedit.pt
===================================================================
--- bfgsite/views/templates/tutorialbin_addedit.pt	(revision 8509)
+++ bfgsite/views/templates/tutorialbin_addedit.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/trac_theme.pt
===================================================================
--- bfgsite/views/templates/trac_theme.pt	(revision 8509)
+++ bfgsite/views/templates/trac_theme.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="css">
     <link rel="stylesheet" href="/trac/chrome/common/css/trac.css" 
Index: bfgsite/views/templates/pastebin_manage.pt
===================================================================
--- bfgsite/views/templates/pastebin_manage.pt	(revision 8509)
+++ bfgsite/views/templates/pastebin_manage.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
   
   <div metal:fill-slot="headinclude">
     
Index: bfgsite/views/templates/errata.pt
===================================================================
--- bfgsite/views/templates/errata.pt	(revision 8509)
+++ bfgsite/views/templates/errata.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/forgot_password.pt
===================================================================
--- bfgsite/views/templates/forgot_password.pt	(revision 8509)
+++ bfgsite/views/templates/forgot_password.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/community.pt
===================================================================
--- bfgsite/views/templates/community.pt	(revision 8509)
+++ bfgsite/views/templates/community.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/register.pt
===================================================================
--- bfgsite/views/templates/register.pt	(revision 8509)
+++ bfgsite/views/templates/register.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/searchresults.pt
===================================================================
--- bfgsite/views/templates/searchresults.pt	(revision 8509)
+++ bfgsite/views/templates/searchresults.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="headinclude">
       <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js";></script>
Index: bfgsite/views/templates/book.pt
===================================================================
--- bfgsite/views/templates/book.pt	(revision 8509)
+++ bfgsite/views/templates/book.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/software.pt
===================================================================
--- bfgsite/views/templates/software.pt	(revision 8509)
+++ bfgsite/views/templates/software.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
Index: bfgsite/views/templates/forbidden.pt
===================================================================
--- bfgsite/views/templates/forbidden.pt	(revision 8509)
+++ bfgsite/views/templates/forbidden.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
     <div id="content">
Index: bfgsite/views/templates/tutorialbin.pt
===================================================================
--- bfgsite/views/templates/tutorialbin.pt	(revision 8509)
+++ bfgsite/views/templates/tutorialbin.pt	(working copy)
@@ -2,7 +2,7 @@
     xmlns="http://www.w3.org/1999/xhtml"; 
     xmlns:tal="http://xml.zope.org/namespaces/tal";
     xmlns:metal="http://xml.zope.org/namespaces/metal";
-    metal:use-macro="api.main_template.macros['master']">
+    metal:use-macro="api.main_template">
 
   <div metal:fill-slot="content">
 
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to