| java.lang.Object freemarker.cache.FileTemplateLoader
FileTemplateLoader | public class FileTemplateLoader implements TemplateLoader(Code) | | A
TemplateLoader that uses files in a specified directory as the
source of templates. If contains security checks that will prevent it
serving templates outside the template directory (like <include /etc/passwd> .
It compares canonical paths for this, so templates that are symbolically
linked into the template directory from outside of it won't work either.
author: Attila Szegedi, szegedia at freemail dot hu version: $Id: FileTemplateLoader.java,v 1.26 2004/03/29 08:06:22 szegedia Exp $ |
Constructor Summary | |
public | FileTemplateLoader() Creates a new file template cache that will use the current directory
(the value of the system property user.dir as the base
directory for loading templates. | public | FileTemplateLoader(File baseDir) Creates a new file template loader that will use the specified directory
as the base directory for loading templates. |
FileTemplateLoader | public FileTemplateLoader() throws IOException(Code) | | Creates a new file template cache that will use the current directory
(the value of the system property user.dir as the base
directory for loading templates.
|
FileTemplateLoader | public FileTemplateLoader(File baseDir) throws IOException(Code) | | Creates a new file template loader that will use the specified directory
as the base directory for loading templates.
Parameters: baseDir - the base directory for loading templates |
closeTemplateSource | public void closeTemplateSource(Object templateSource)(Code) | | |
getLastModified | public long getLastModified(Object templateSource)(Code) | | |
|
|