Branch: Tag:

2001-03-12

2001-03-12 10:01:09 by Johan Sundström <oyasumi@gmail.com>

Corrected some broken docs, mostly for <cimg-url>. [docs]

Rev: server/modules/graphics/cimg.pike:1.38

7:      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.37 2001/03/01 20:44:07 per Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.38 2001/03/12 10:01:09 jhs Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Image converter";   constant module_doc = "Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "
18:    Stdio.File file=Stdio.File();    if(!file->open(__FILE__,"r")) return 0;    mapping doc=compile_string("#define manual\n"+file->read())->tagdoc; -  string imagecache=the_cache->documentation("cimg src='internal-roxen-testimage'"); -  -  doc->cimg+=imagecache; -  doc["cimg-url"]=imagecache; +  foreach(({ "cimg", "cimg-url" }), string tag) +  doc[tag] += the_cache->documentation(tag + +  " src='/internal-roxen-testimage'");    return doc;   }   
36: Inside #if defined(manual)
  <attr name='src' value='uri' required='required'><p>    The path to the indata file.</p>    - <ex><cimg src='internal-roxen-testimage'/></ex> + <ex><cimg src='/internal-roxen-testimage'/></ex>   </attr>      <attr name='data' value='imagedata'><p>
60: Inside #if defined(manual)
  <attr name='src' value='uri' required='required'><p>    The path to the indata file.</p>    - <ex><cimg-url src='internal-roxen-testimage'/></ex> + <ex><cimg-url src='/internal-roxen-testimage'/></ex>   </attr>      <attr name='data' value='imagedata'><p>
68: Inside #if defined(manual)
   variables.</p>   <ex type='box'>   <emit source='sql' query='select imagedata from images where id=37'> - <cimg data='&sql.imagedata;'/> + <cimg-url data='&sql.imagedata;'/>   </emit>   </ex>   </attr>",