[Checkins] SVN: megrok.chameleon/trunk/src/megrok/chameleon/README.txt Update tests to handle static resources.

Uli Fouquet uli at gnufix.de
Tue Apr 12 08:01:46 EDT 2011


Log message for revision 121407:
  Update tests to handle static resources.
  

Changed:
  U   megrok.chameleon/trunk/src/megrok/chameleon/README.txt

-=-
Modified: megrok.chameleon/trunk/src/megrok/chameleon/README.txt
===================================================================
--- megrok.chameleon/trunk/src/megrok/chameleon/README.txt	2011-04-12 12:01:02 UTC (rev 121406)
+++ megrok.chameleon/trunk/src/megrok/chameleon/README.txt	2011-04-12 12:01:46 UTC (rev 121407)
@@ -93,9 +93,9 @@
 Substituting variables
 ----------------------
 
-A template can access variables like ``view``, ``context`` and its
-methods and attributes. The ``food`` view does exactly this. The
-template looks like this:
+A template can access variables like ``view``, ``context``, ``static``
+and its methods and attributes. The ``food`` view does exactly
+this. The template looks like this:
 
     >>> food_cpt = os.path.join(template_dir, 'food.cpt')
     >>> print open(food_cpt, 'rb').read()
@@ -104,6 +104,7 @@
     <span tal:define="foo 'a FOO'">
     ${view.me_do()}
     <span tal:replace="structure view.me_do()" />
+    CSS-URL: ${path: static/test.css}
     My context is: ${view.url(context)}
     ${foo}
     <span tal:replace="foo" />
@@ -120,6 +121,7 @@
     <span>
     &lt;ME GROK EAT MAMMOTH!&gt;
     <ME GROK EAT MAMMOTH!>
+    CSS-URL: dummy:/test.css
     My context is: http://127.0.0.1/manfred
     a FOO
     a FOO



More information about the checkins mailing list