Class TemplateDirectory
A model which represents a filesystem directory containing ZPT documents.
Inheritance
Inherited Members
Namespace: ZptSharp
Assembly: ZptSharp.Abstractions.dll
Syntax
public class TemplateDirectory
Remarks
Each instance of this class represents a single filesystem directory. This class has special handling within TALES path expressions, such that it may be treated much as a filesystem path.
If a TALES path expression which makes use of an instance of this type references a document template
file, then that template will automatically be parsed, loaded and its macros made available via a
macros
path property.
Constructors
| Improve this Doc View SourceTemplateDirectory(DirectoryInfo)
Initializes a new instance of the TemplateDirectory class
which represents the directory indicated by the specified DirectoryInfo
instance.
Declaration
public TemplateDirectory(DirectoryInfo directory)
Parameters
Type | Name | Description |
---|---|---|
System.IO.DirectoryInfo | directory | A directory info object. |
TemplateDirectory(String)
Initializes a new instance of the TemplateDirectory class which represents the directory indicated by the specified string path.
Declaration
public TemplateDirectory(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to the directory. |
Properties
| Improve this Doc View SourcePath
Gets the filesystem path to the template directory.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String | The path. |