C# Class Felinesoft.UmbracoCodeFirst.Core.Modules.TemplateModule

Inheritance: ITemplateModule
Show file Open project: DanMannMann/UmbracoCodeFirst

Public Methods

Method Description
Initialise ( IEnumerable classes ) : void
RegisterTemplates ( Type docType ) : void

Registers the specified templates for the given doctype. Creates a basic default cshtml file if none exists at the specified path.

TemplateModule ( IDocumentTypeModule documentTypeModule, IFileService fileService, IContentTypeService contentTypeService ) : System

Private Methods

Method Description
ConfigureTemplate ( Type docType, ITemplate &defaultTemplate, TemplateAttribute attribute ) : ITemplate
CreateTemplate ( TemplateAttribute attribute ) : ITemplate

Method Details

Initialise() public method

public Initialise ( IEnumerable classes ) : void
classes IEnumerable
return void

RegisterTemplates() public method

Registers the specified templates for the given doctype. Creates a basic default cshtml file if none exists at the specified path.
public RegisterTemplates ( Type docType ) : void
docType System.Type
return void

TemplateModule() public method

public TemplateModule ( IDocumentTypeModule documentTypeModule, IFileService fileService, IContentTypeService contentTypeService ) : System
documentTypeModule IDocumentTypeModule
fileService IFileService
contentTypeService IContentTypeService
return System