ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.Tales.ITemplateFileFactory Interface Reference

Interface for a type which creates instances of TemplateFile. More...

Inheritance diagram for CSF.Zpt.Tales.ITemplateFileFactory:

Public Member Functions

bool TryDetectMode (FileInfo sourceFile, out RenderingMode detectedMode)
 Gets a value indicating the RenderingMode detected for a given source file. More...
 
TemplateFile CreateTemplateFile (FileInfo sourceFile, Encoding encoding=null, RenderingMode?renderingMode=null)
 Creates a template file from the given source file. More...
 
TemplateFile CreateTemplateFile (FileInfo sourceFile, Type providerType, Encoding encoding=null)
 Creates a template file from the given source file. More...
 
TemplateFile CreateTemplateFile (IZptDocument document)
 Creates a template file from the given ZPT document. More...
 

Detailed Description

Interface for a type which creates instances of TemplateFile.

Member Function Documentation

TemplateFile CSF.Zpt.Tales.ITemplateFileFactory.CreateTemplateFile ( FileInfo  sourceFile,
Encoding  encoding = null,
RenderingMode renderingMode = null 
)

Creates a template file from the given source file.

Parameters
sourceFileThe source file containing the document to create.
encodingThe text encoding to use in reading the source file.
renderingModeThe rendering mode to use in creating the output document.

Implemented in CSF.Zpt.ZptDocumentFactory.

TemplateFile CSF.Zpt.Tales.ITemplateFileFactory.CreateTemplateFile ( FileInfo  sourceFile,
Type  providerType,
Encoding  encoding = null 
)

Creates a template file from the given source file.

Parameters
sourceFileThe source file containing the document to create.
providerTypeThe IZptDocumentProvider type to use for creating the document.
encodingThe text encoding to use in reading the source file.

Implemented in CSF.Zpt.ZptDocumentFactory.

TemplateFile CSF.Zpt.Tales.ITemplateFileFactory.CreateTemplateFile ( IZptDocument  document)

Creates a template file from the given ZPT document.

Returns
The template file.
Parameters
documentDocument.

Implemented in CSF.Zpt.ZptDocumentFactory.

bool CSF.Zpt.Tales.ITemplateFileFactory.TryDetectMode ( FileInfo  sourceFile,
out RenderingMode  detectedMode 
)

Gets a value indicating the RenderingMode detected for a given source file.

Returns
true if the RenderingMode could be auto-detected; false if not.
Parameters
sourceFileThe source file.
detectedModeExposes the detected rendering mode.

Implemented in CSF.Zpt.ZptDocumentFactory.


The documentation for this interface was generated from the following file: