[Checkins] SVN: five.megrok.z3cpt/trunk/README.txt Update README.txt.
Sylvain Viollon
sylvain at infrae.com
Wed Oct 15 17:57:24 EDT 2008
Log message for revision 92266:
Update README.txt.
Changed:
U five.megrok.z3cpt/trunk/README.txt
-=-
Modified: five.megrok.z3cpt/trunk/README.txt
===================================================================
--- five.megrok.z3cpt/trunk/README.txt 2008-10-15 21:46:46 UTC (rev 92265)
+++ five.megrok.z3cpt/trunk/README.txt 2008-10-15 21:57:23 UTC (rev 92266)
@@ -1,4 +1,22 @@
-Introduction
-============
+five.megrok.z3cpt
+=================
+five.megrok.z3cpt bring z3c.pt web templates in the Grok world of Zope 2.
+You can associate your template either directly in your code::
+
+ from five import grok
+ from five.megrok import z3cpt
+
+ class Index(grok.View):
+ pass
+
+ index = z3cpt.PageTemplate("""Your template code""")
+
+You are able to specify a filename as well:
+
+ index = z3cpt.PageTemplate(filename="template.zpt")
+
+You are able to creating a template with the extension ``.zpt`` in
+your associated templates directory of your current module.
+
More information about the Checkins
mailing list