sunlabs.brazil.sunlabs
Class SourceTemplate
java.lang.Object
|
+--sunlabs.brazil.template.Template
|
+--sunlabs.brazil.sunlabs.SourceTemplate
- All Implemented Interfaces:
- TemplateInterface
- public class SourceTemplate
- extends Template
Template class for incorporating the content of a local file.
<import src=file [encoding=enc name=property eval=true|false]>
Attributes:
- src
- Where to find the document to source. Unless starting with
"/", it is assumed to be relative to the document root.
- eval
- If true, all ${...} are evaluated before incorporating the src
- encoding
- Specifies the character encoding to use. If not specified
or invalid, the default encoding is used.
- name
- If set, the content is placed in the named variable instead
of being inserted inline.
Fields inherited from class sunlabs.brazil.template.Template |
debug |
SourceTemplate
public SourceTemplate()
tag_source
public void tag_source(RewriteContext hr)