[Checkins] SVN: grok/trunk/doc/tutorial.rst * add a note about support for other template languages

Martijn Faassen faassen at infrae.com
Thu Dec 11 10:18:42 EST 2008


Log message for revision 93902:
  * add a note about support for other template languages
  
  * the unassociated templates error changed into a warning some time
    go: update the tutorial.
  

Changed:
  U   grok/trunk/doc/tutorial.rst

-=-
Modified: grok/trunk/doc/tutorial.rst
===================================================================
--- grok/trunk/doc/tutorial.rst	2008-12-11 14:06:11 UTC (rev 93901)
+++ grok/trunk/doc/tutorial.rst	2008-12-11 15:18:42 UTC (rev 93902)
@@ -386,8 +386,15 @@
 The empty class definition above is enough for Grok to go look in the
 ``app_templates`` directory for ``bye.pt``. The rule is that a the
 template should have the same name as the class, but lowercased and
-with the ``.pt`` postfix.
+with the ``.pt`` postfix. 
 
+.. sidebar:: Other templating languages
+
+  You can also install extensions to allow the use of other templating
+  languages in Grok, see for instance `megrok.genshi`_.
+
+  .. _`megrok.genshi`: http://pypi.python.org/pypi/megrok.genshi/
+
 Restart Zope (``CTRL-C``, then ``bin/paster serve etc/deploy.ini``). You can now 
 go to a new web page called ``bye``:
 
@@ -498,16 +505,15 @@
 
   If you have followed the tutorial so far, you will have an extra
   template called ``bye.pt`` in your ``app_templates`` directory.
-  Since in the given ``app.py``e we have no more class using it, the
-  ``bye.pt`` template will have become *unassociated**. When you try
-  to restart Zope, grok will be unable to read your application, and
-  Zope will crash with an error message like this::
+  Since in the given ``app.py`` we we have no more class using it, the
+  ``bye.pt`` template will have become *unassociated*. When you try to
+  restart Zope, Grok will give you a warning like this::
 
-    GrokError: Found the following unassociated template(s) when
+    UserWarning: Found the following unassociated template(s) when
     grokking 'sample.app': bye.  Define view classes inheriting from
     grok.View to enable the template(s).
 
-  To resolve this error, simply remove ``bye.pt`` from your
+  To get rid of this warning, simply remove ``bye.pt`` from your
   ``app_templates`` directory.
 
 ZPT is deliberately limited in what it allows you to do with Python.



More information about the Checkins mailing list