[Checkins] SVN: megrok.genshi/trunk/README.txt Formatting
improvement.
Lennart Regebro
regebro at gmail.com
Mon Nov 12 17:54:27 EST 2007
Log message for revision 81797:
Formatting improvement.
Changed:
U megrok.genshi/trunk/README.txt
-=-
Modified: megrok.genshi/trunk/README.txt
===================================================================
--- megrok.genshi/trunk/README.txt 2007-11-12 22:50:53 UTC (rev 81796)
+++ megrok.genshi/trunk/README.txt 2007-11-12 22:54:27 UTC (rev 81797)
@@ -41,15 +41,15 @@
use any extension for this we recommend you use .gi for any include templates,
to avoid any clashes with other templating languages.
-You can also use Genshi templates inline. The syntax for this is:
+You can also use Genshi templates inline. The syntax for this is::
from megrok.genshi.components import GenshiMarkupTemplate, GenshiTextTemplate
-
index = GenshiMarkupTemplate('<html>the html code</html>')
index = GenshiMarkupTemplate('Text templates')
-Or if you use files
+Or if you use files::
+ from megrok.genshi.components import GenshiMarkupTemplate, GenshiTextTemplate
index = GenshiMarkupTemplate(filename='thefilename.html')
index = GenshiMarkupTemplate(filename='thefilename.txt')
More information about the Checkins
mailing list