[Checkins] SVN: grok/trunk/doc/ Sample-ize tutorial.

Martijn Faassen faassen at infrae.com
Fri Mar 16 17:05:21 EDT 2007


Log message for revision 73249:
  Sample-ize tutorial.
  

Changed:
  A   grok/trunk/doc/groktut/static_resources_for_our_web_page/
  U   grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/app_templates/index.pt
  A   grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/static/
  A   grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/static/style.css
  U   grok/trunk/doc/tutorial.txt

-=-
Copied: grok/trunk/doc/groktut/static_resources_for_our_web_page (from rev 73246, grok/trunk/doc/groktut/publishing_a_simple_web_page)

Modified: grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/app_templates/index.pt
===================================================================
--- grok/trunk/doc/groktut/publishing_a_simple_web_page/src/sample/app_templates/index.pt	2007-03-16 20:51:35 UTC (rev 73246)
+++ grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/app_templates/index.pt	2007-03-16 21:05:20 UTC (rev 73249)
@@ -1,5 +1,9 @@
 <html>
+<head>
+<link rel="stylesheet" type="text/css" 
+      tal:attributes="href static/style.css" />
+</head>
 <body>
 <p>Hello world!</p>
 </body>
-</html>
\ No newline at end of file
+</html>

Added: grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/static/style.css
===================================================================
--- grok/trunk/doc/groktut/publishing_a_simple_web_page/src/sample/static/style.css	2007-03-16 20:51:35 UTC (rev 73246)
+++ grok/trunk/doc/groktut/static_resources_for_our_web_page/src/sample/static/style.css	2007-03-16 21:05:20 UTC (rev 73249)
@@ -0,0 +1,3 @@
+body {
+    background-color: #FF0000;
+}

Modified: grok/trunk/doc/tutorial.txt
===================================================================
--- grok/trunk/doc/tutorial.txt	2007-03-16 21:01:10 UTC (rev 73248)
+++ grok/trunk/doc/tutorial.txt	2007-03-16 21:05:20 UTC (rev 73249)
@@ -374,24 +374,16 @@
 
 To do this, create a new directory called ``static`` in the ``sample``
 package (so, ``src/sample/static``). In it, place a file called
-``style.css`` and put in the following content::
+``style.css`` and put in the following content:
 
-  body {
-    background-color: #FF0000;
-  }
+.. include:: groktut/static_resources_for_our_web_page/src/sample/static/style.css
+  :literal:
 
 In order to use it, we also need to refer to it from our
-``index.pt``. Change the content of ``index.pt`` to read like this::
+``index.pt``. Change the content of ``index.pt`` to read like this:
 
-  <html>
-  <head>
-  <link rel="stylesheet" type="text/css" 
-        tal:attributes="href static/style.css" />
-  </head>
-  <body>
-  <p>Hello world!</p>
-  </body>
-  </html>
+.. include:: groktut/static_resources_for_our_web_page/src/sample/app_templates/index.pt
+  :literal:
 
 Now restart Zope and reload the page:
 



More information about the Checkins mailing list