[Checkins] SVN: bluebream/website/docs/v1.0/ Added community part
Baiju M
baiju.m.mail at gmail.com
Mon May 3 22:19:02 EDT 2010
Log message for revision 111906:
Added community part
Changed:
A bluebream/website/docs/v1.0/community/
A bluebream/website/docs/v1.0/community/browserresource.rst
A bluebream/website/docs/v1.0/community/index.rst
U bluebream/website/docs/v1.0/index.rst
-=-
Added: bluebream/website/docs/v1.0/community/browserresource.rst
===================================================================
--- bluebream/website/docs/v1.0/community/browserresource.rst (rev 0)
+++ bluebream/website/docs/v1.0/community/browserresource.rst 2010-05-04 02:19:02 UTC (rev 111906)
@@ -0,0 +1,45 @@
+Browser Resource
+================
+
+Package: z3c.zrtresource
+
+ZRT Resource
+------------
+
+When working locally, you may be storing your image resources in a
+directory. If you have a subfolder called images with an image
+logo.png. And you have a template, so here is the HTML to insert the
+logo::
+
+ <img src="./images/logo.png" />
+
+Now you can see that the template locally works. If you view the
+HTML via Zope, you can see that it is broken. Now, let's try to
+register the logo with the system like this::
+
+ <resource
+ name="logo.png"
+ file="images/logo.png"
+ />
+
+Now try again, after restarting Zope 3, you can see that it is still
+broken!. So, relative path is not correct.
+
+Zope Resource Templates (ZRT) allows for locally working resources to
+work with Zope 3 as well. It will rewrite text segments in a
+resource. It is a 3rd party package developed by Stephan Richter for
+Lovely Systems. The package is available from here:
+http://pypi.python.org/pypi/z3c.zrtresource Add the following lines
+to the HTML resource::
+
+ <!--
+ /* zrt-replace: "./images/logo.png" \
+ tal"string:${context/++resource++logo.png}" */
+ -->
+
+Then convert HTML resource registration to::
+
+ <zrt-resource
+ name="helloworld.html"
+ file="helloworld.html"
+ />
Added: bluebream/website/docs/v1.0/community/index.rst
===================================================================
--- bluebream/website/docs/v1.0/community/index.rst (rev 0)
+++ bluebream/website/docs/v1.0/community/index.rst 2010-05-04 02:19:02 UTC (rev 111906)
@@ -0,0 +1,14 @@
+Documentation for Community Packages
+====================================
+
+.. warning::
+
+ This documentation is under construction. See the `Documentation
+ Status <http://wiki.zope.org/bluebream/DocumentationStatus>`_ page
+ in wiki for the current status and timeline.
+
+.. toctree::
+ :numbered:
+ :maxdepth: 2
+
+ browserresource
Modified: bluebream/website/docs/v1.0/index.rst
===================================================================
--- bluebream/website/docs/v1.0/index.rst 2010-05-04 02:17:07 UTC (rev 111905)
+++ bluebream/website/docs/v1.0/index.rst 2010-05-04 02:19:02 UTC (rev 111906)
@@ -27,6 +27,7 @@
reference/index
zcml/index
event
+ community/index
glossary
contributors
More information about the checkins
mailing list