Show / Hide Table of Contents

Class TemplateDirectory

A model which represents a filesystem directory containing ZPT documents.

Inheritance
System.Object
TemplateDirectory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

TemplateDirectory(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.

| Improve this Doc View Source

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 Source

Path

Gets the filesystem path to the template directory.

Declaration
public string Path { get; }
Property Value
Type Description
System.String

The path.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX