C# Class BlogSharp.Core.Impl.Services.Template.DefaultTemplateSource

Inheritance: ITemplateSource
Show file Open project: BlogSharp/Blogsharp

Public Methods

Method Description
DefaultTemplateSource ( IFileService fileServices, ITemplateEngineRegistry templateEngineRegistry ) : System
GetTemplateFromFile ( string file ) : ITemplate
GetTemplateFromString ( string content ) : ITemplate
GetTemplateWithKey ( string key ) : ITemplate
RegisterTemplateWithFile ( string key, string file ) : void
RegisterTemplateWithString ( string key, string content ) : void
UnregisterTemplate ( string key ) : void

Method Details

DefaultTemplateSource() public method

public DefaultTemplateSource ( IFileService fileServices, ITemplateEngineRegistry templateEngineRegistry ) : System
fileServices IFileService
templateEngineRegistry ITemplateEngineRegistry
return System

GetTemplateFromFile() public method

public GetTemplateFromFile ( string file ) : ITemplate
file string
return ITemplate

GetTemplateFromString() public method

public GetTemplateFromString ( string content ) : ITemplate
content string
return ITemplate

GetTemplateWithKey() public method

public GetTemplateWithKey ( string key ) : ITemplate
key string
return ITemplate

RegisterTemplateWithFile() public method

public RegisterTemplateWithFile ( string key, string file ) : void
key string
file string
return void

RegisterTemplateWithString() public method

public RegisterTemplateWithString ( string key, string content ) : void
key string
content string
return void

UnregisterTemplate() public method

public UnregisterTemplate ( string key ) : void
key string
return void