[Checkins] SVN: Sandbox/ulif/grok-adminui/doc/macros.txt fixed metal:fill-slot element syntax in last code example, and replaced some tabs with four spaces in the last two sections

Luciano Ramalho luciano at ramalho.org
Sat Jul 7 17:19:53 EDT 2007


Log message for revision 77591:
  fixed metal:fill-slot element syntax in last code example, and replaced some tabs with four spaces in the last two sections
  

Changed:
  U   Sandbox/ulif/grok-adminui/doc/macros.txt

-=-
Modified: Sandbox/ulif/grok-adminui/doc/macros.txt
===================================================================
--- Sandbox/ulif/grok-adminui/doc/macros.txt	2007-07-07 20:09:04 UTC (rev 77590)
+++ Sandbox/ulif/grok-adminui/doc/macros.txt	2007-07-07 21:19:52 UTC (rev 77591)
@@ -201,11 +201,11 @@
 other page template, just set a very general context for your macro
 view::
 
-	from zope.interface import Interface
-        import grok
+    from zope.interface import Interface
+    import grok
 
-	class Master(grok.View):
-	    grok.context(Interface)
+    class Master(grok.View):
+        grok.context(Interface)
 
 and reference the macros of the associated pagetemplate like this::
 
@@ -229,14 +229,14 @@
 To give your pages standard Zope3 look, you can do something like
 this in your page template::
 
-	<html metal:use-macro="context/@@standard_macros/page">
-	  <head>
-	    <title metal:fill-slot="title">
+        <html metal:use-macro="context/@@standard_macros/page">
+          <head>
+            <title metal:fill-slot="title">
               Document Title
-	    </title>
-            <metal:fill-slot="headers">
+            </title>
+            <metal:headers fill-slot="headers">
               <!-- Additional headers here... -->
-            </metal>
+            </metal:headers>
           </head>
           <body>
             <div metal:fill-slot="body">



More information about the Checkins mailing list