|
||||||||||
| 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.SourceTemplate
public class SourceTemplate
Template class for incorporating the content of a local file into the current document.
<source src=file
[encoding=enc name=property eval=true|false reprocess=true|false]
>
Attributes:
name is not set (e.g. the content is inserted
in-line, then the content will be run through the normal template
processing before being inserted into the current document.
<source src=xml.tmpl eval=true>
can be used to read in XML templates (or template fragments) that
contain ${...} constructs that get filled in as the template
is read.
The form:
<source src=section1.html reprocess=true>
can be used as a convenient way to break a single logical file into
separate sections. (Note: this isn't currently implemented in a very
efficient way.
| Field Summary |
|---|
| Fields inherited from class sunlabs.brazil.template.Template |
|---|
debug |
| Constructor Summary | |
|---|---|
SourceTemplate()
|
|
| Method Summary | |
|---|---|
void |
tag_source(RewriteContext hr)
|
| Methods inherited from class sunlabs.brazil.template.Template |
|---|
debug, debug, done, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceTemplate()
| Method Detail |
|---|
public void tag_source(RewriteContext hr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||