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.


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
done, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceTemplate

public SourceTemplate()
Method Detail

tag_source

public void tag_source(RewriteContext hr)

Version 2.1, Generated 12/30/04
Copyright (c) 2001-2004, Sun Microsystems.