|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.sunlabs.SnarfTemplate
public class SnarfTemplate
Template class for extracting content out of
<snarf property=xxx> ... </snarf> pairs.
xxx is the name of the property to append the snarfed
content to. Defaults to [prepend].snarf.
All snarf'ed content is deleted.
Properties:
prepend
debug
| Constructor Summary | |
|---|---|
SnarfTemplate()
|
|
| Method Summary | |
|---|---|
boolean |
init(RewriteContext hr)
Get the debug flag and reset page. |
void |
tag_slash_snarf(RewriteContext hr)
Save the content gathered so far. |
void |
tag_snarf(RewriteContext hr)
Mark the current location in the document. |
| Methods inherited from class sunlabs.brazil.template.Template |
|---|
debug, debug, done |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnarfTemplate()
| Method Detail |
|---|
public boolean init(RewriteContext hr)
init in interface TemplateInterfaceinit in class Templatepublic void tag_snarf(RewriteContext hr)
public void tag_slash_snarf(RewriteContext hr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||