Factor/Cookbook/Website

Web tips

Add a picture to a page

  • add a static responder
home "pics" append-path <static> "pictures" add-responder
  • place images in directory
+misc
+temp
+work
    +foo
        +bar
        +pics
             -image1.png
             -image2.png
         + ...
  • link image in web page
 
<div>
<li>first picture <img src="./pictures/image1.png" /></li> 
<li>second picture <img src="./pictures/image2.png" /></li> 
</div>

This can also be useful for css files if you don't want to include style-sheet in html for bandwidth reasons.

This revision created on Fri, 31 Oct 2008 17:19:46 by jeff