sunlabs.brazil.sunlabs
Class ExpContentTemplate
java.lang.Object
  |
  +--sunlabs.brazil.template.Template
        |
        +--sunlabs.brazil.template.ContentTemplate
              |
              +--sunlabs.brazil.sunlabs.ExpContentTemplate
- All Implemented Interfaces: 
- TemplateInterface
- public class ExpContentTemplate- extends ContentTemplate
Allow extracted content to be filtered through regular expressions.
 Many sites use comment conventions to demarcate the headers and 
 footer information in their pages.  This template allows
 regular expressions to be used to process the "content" value
 extracted by the ContentTemplate.
 
 Request properties:
 
 - extract	
- A regular expression to match the extracted content
 
- replace	
- A regular expression substitution string used to
		replace the content, if the expression matched.
 
- urlPrefix
- A prefix the url must match to be considered
		for rewriting
 
 
| Fields inherited from class sunlabs.brazil.template.Template | 
| debug | 
 
 
| Method Summary | 
|  boolean | done(RewriteContext hr)Run the content through a regexp to do further extraction.
 | 
|  boolean | init(RewriteContext hr)Called before this template processes any tags.
 | 
 
| Methods inherited from class sunlabs.brazil.template.ContentTemplate | 
| tag_body, tag_content, tag_link, tag_meta, tag_script, tag_slash_body, tag_slash_content, tag_slash_head, tag_slash_title, tag_style, tag_title | 
 
 
ExpContentTemplate
public ExpContentTemplate()
init
public boolean init(RewriteContext hr)
- Description copied from class: Template
- Called before this template processes any tags.
 
- 
- Specified by:
- initin interface- TemplateInterface
- Overrides:
- initin class- ContentTemplate
 
- 
 
done
public boolean done(RewriteContext hr)
- Run the content through a regexp to do further extraction.
 If the regexp didn't match, leave the existing content alone.
 
- 
- Specified by:
- donein interface- TemplateInterface
- Overrides:
- donein class- ContentTemplate
 
-