Implemented groundwork for search configuration.
This commit is contained in:
@@ -3,13 +3,13 @@ using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Props.Services.Content
|
||||
{
|
||||
public class ContentManager<Page> : IContentManager<Page>
|
||||
public class CachedContentManager<TPage> : IContentManager<TPage>
|
||||
{
|
||||
private dynamic data;
|
||||
private readonly string directory;
|
||||
private readonly string fileName;
|
||||
|
||||
dynamic IContentManager<Page>.Json
|
||||
dynamic IContentManager<TPage>.Json
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -18,10 +18,10 @@ namespace Props.Services.Content
|
||||
}
|
||||
}
|
||||
|
||||
public ContentManager(string directory = "content")
|
||||
public CachedContentManager(string directory = "content")
|
||||
{
|
||||
this.directory = directory;
|
||||
this.fileName = typeof(Page).Name.Replace("Model", "") + ".json";
|
||||
this.fileName = typeof(TPage).Name.Replace("Model", "") + ".json";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user