sunlabs.brazil.template
Class NoImageTemplate
java.lang.Object
  |
  +--sunlabs.brazil.template.Template
        |
        +--sunlabs.brazil.template.NoImageTemplate
- All Implemented Interfaces: 
- TemplateInterface
- public class NoImageTemplate- extends Template
Sample template class for removing all images
 from a web page, and replacing them with their alt strings.
 This class is used by the TemplateHandler
 Each image is replaced by a text string defined by the server property
 "template", which the first "%" replaced by the contents of the
 alt attribute.  Defaults to "[<b>%<b>]".
 
 - template
- The text used to replace the image. The first "%" will contain the image
 "alt" string, if any.
 
 
| Fields inherited from class sunlabs.brazil.template.Template | 
| debug | 
 
 
| Method Summary | 
|  boolean | init(RewriteContext hr)Save a reference to our request properties
 We'll use it some day to tailor the image display
 | 
|  void | tag_img(RewriteContext hr)Convert the html tag img into text using the alt string
 | 
 
| Methods inherited from class sunlabs.brazil.template.Template | 
| done | 
 
 
NoImageTemplate
public NoImageTemplate()
init
public boolean init(RewriteContext hr)
- Save a reference to our request properties
 We'll use it some day to tailor the image display
 
- 
- Specified by:
- initin interface- TemplateInterface
- Overrides:
- initin class- Template
 
- 
 
tag_img
public void tag_img(RewriteContext hr)
- Convert the html tag img into text using the alt string
 
-