TemplateLoader
Namespace: Proffer.Templating.Internal
Loads template references from an Proffer.Storage.IStore and cache results.
public class TemplateLoader : Proffer.Templating.ITemplateLoader
Inheritance Object → TemplateLoader
Implements ITemplateLoader
Constructors
TemplateLoader(IStore, IEnumerable<ITemplateProvider>, IMemoryCache)
Initializes a new instance of the TemplateLoader class.
public TemplateLoader(IStore store, IEnumerable<ITemplateProvider> providers, IMemoryCache memoryCache)
Parameters
store
IStore
The store.
providers
IEnumerable<ITemplateProvider>
The providers.
memoryCache
IMemoryCache
The memory cache.
Methods
GetTemplate(String)
Gets a template by name.
public Task<ITemplate> GetTemplate(string name)
Parameters
name
String
The template name.
Returns
The matching .