[Checkins] SVN: grok/trunk/doc/minitutorials/macros.txt Enabled syntax-highlighting for macros tutorial.

Uli Fouquet uli at gnufix.de
Sat Aug 4 09:33:44 EDT 2007


Log message for revision 78583:
  Enabled syntax-highlighting for macros tutorial.

Changed:
  U   grok/trunk/doc/minitutorials/macros.txt

-=-
Modified: grok/trunk/doc/minitutorials/macros.txt
===================================================================
--- grok/trunk/doc/minitutorials/macros.txt	2007-08-04 13:30:44 UTC (rev 78582)
+++ grok/trunk/doc/minitutorials/macros.txt	2007-08-04 13:33:44 UTC (rev 78583)
@@ -45,8 +45,10 @@
 macros. Macros generally are attributes of the page template wherein they
 are defined, but to get them rendered, we usually use views.
 
-We define a view ``MyMacros`` the usual way in ``app.py``::
+We define a view ``MyMacros`` the usual way in ``app.py``:
 
+.. code-block:: python
+
    import grok
 
    class Sample(grok.Application, grok.Container):
@@ -202,8 +204,10 @@
 To define an 'all-purpose' macro, i.e. a macro, that can render
 objects of (nearly) any type and thus be accessed from any
 other page template, just set a very general context for your macro
-view::
+view:
 
+.. code-block:: python
+
     from zope.interface import Interface
     import grok
 



More information about the Checkins mailing list