[Checkins] SVN: grokcore.view/trunk/README.txt document static
resources
Philipp von Weitershausen
philikon at philikon.de
Thu Aug 7 17:19:48 EDT 2008
Log message for revision 89500:
document static resources
Changed:
U grokcore.view/trunk/README.txt
-=-
Modified: grokcore.view/trunk/README.txt
===================================================================
--- grokcore.view/trunk/README.txt 2008-08-07 20:07:58 UTC (rev 89499)
+++ grokcore.view/trunk/README.txt 2008-08-07 21:19:47 UTC (rev 89500)
@@ -98,6 +98,18 @@
To cut a long story short, if we named it ``app_templates/hello.pt``,
it would be found automatically.
+Static resources
+----------------
+
+Browser pages often need additional static resources like CSS and
+JavaScript files. These can be conveniently placed into a directory
+called ``static`` in the package that contains the view code. This
+directory will automatically be registered as a resource directory.
+It is available as the ``static`` variable in all views of this
+package and you can refer to files inside this directory like so::
+
+ <img src="hello.png" tal:attributes="src static/hello.png" />
+
Layers and skins
----------------
More information about the Checkins
mailing list