[Checkins] SVN: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl Showcase rendering URLs to resources using both the '++resource++' and 'static' methods.
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Mon Dec 6 08:36:40 EST 2010
Log message for revision 118720:
Showcase rendering URLs to resources using both the '++resource++' and 'static' methods.
Changed:
U grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl
-=-
Modified: grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl
===================================================================
--- grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl 2010-12-06 13:36:08 UTC (rev 118719)
+++ grokproject/branches/janjaapdriessen-hurry.resource/grokproject/template/src/+package+/app_templates/index.pt_tmpl 2010-12-06 13:36:40 UTC (rev 118720)
@@ -8,6 +8,11 @@
Edit <code>${package}/app_templates/index.pt</code> to change
this page.</p>
- <img tal:attributes="src context/++resource++foo/evencaveman.jpg"/>
+ <h2>In-template rendering of resources</h2>
+ <p>By using the name under which the library has been registered:</p>
+ <img tal:attributes="src context/++resource++${project_lowercase}/evencaveman.jpg"/>
+
+ <p>By using the 'static' directory:</p>
+ <img tal:attributes="src static/evencaveman.jpg"/>
</body>
</html>
More information about the checkins
mailing list