|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.template.ContentTemplate
sunlabs.brazil.sunlabs.ExpContentTemplate
public class ExpContentTemplate
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:
| Field Summary |
|---|
| Fields inherited from class sunlabs.brazil.template.Template |
|---|
debug |
| Constructor Summary | |
|---|---|
ExpContentTemplate()
|
|
| 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 |
| Methods inherited from class sunlabs.brazil.template.Template |
|---|
debug, debug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpContentTemplate()
| Method Detail |
|---|
public boolean init(RewriteContext hr)
Template
init in interface TemplateInterfaceinit in class ContentTemplatepublic boolean done(RewriteContext hr)
done in interface TemplateInterfacedone in class ContentTemplate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||