C# Class Pretzel.Logic.Templating.Context.SiteContextGenerator

Show file Open project: Code52/pretzel Class Usage Examples

Public Methods

Method Description
BuildContext ( string path, string destinationPath, bool includeDrafts ) : Pretzel.Logic.Templating.Context.SiteContext
CanBeIncluded ( string relativePath ) : bool
IsExcludedPath ( string relativePath ) : bool
IsIncludedPath ( string relativePath ) : bool
IsSpecialPath ( string relativePath ) : bool
RemoveDiacritics ( string strThis ) : string

Private Methods

Method Description
AddCategory ( Dictionary categories, string categoryName, Pretzel.Logic.Templating.Context.Page post ) : void
BuildPages ( IConfiguration config, Pretzel.Logic.Templating.Context.SiteContext context ) : IEnumerable
BuildPosts ( IConfiguration config, Pretzel.Logic.Templating.Context.SiteContext context ) : IEnumerable
BuildTagsAndCategories ( Pretzel.Logic.Templating.Context.SiteContext context ) : void
ContainsYamlFrontMatter ( string file ) : bool
CreatePage ( Pretzel.Logic.Templating.Context.SiteContext context, IConfiguration config, string file, bool isPost ) : Pretzel.Logic.Templating.Context.Page
GetDirectoryPages ( Pretzel.Logic.Templating.Context.SiteContext context, IConfiguration config, string forDirectory, bool isPost ) : IEnumerable
GetFilePathForPage ( Pretzel.Logic.Templating.Context.SiteContext context, string file ) : string
GetPathWithTimestamp ( string outputDirectory, string file ) : string
IsOnlyFrontmatterCategories ( Pretzel.Logic.Templating.Context.SiteContext context ) : bool
MapToOutputPath ( Pretzel.Logic.Templating.Context.SiteContext context, string file ) : string
ResolveCategories ( Pretzel.Logic.Templating.Context.SiteContext context, object>.IDictionary header, Pretzel.Logic.Templating.Context.Page page ) : List
SafeReadContents ( string file ) : string
SafeReadLine ( string file ) : string
SiteContextGenerator ( IFileSystem fileSystem, Pretzel.Logic.Templating.Context.LinkHelper linkHelper, IConfiguration config ) : System

Method Details

BuildContext() public method

public BuildContext ( string path, string destinationPath, bool includeDrafts ) : Pretzel.Logic.Templating.Context.SiteContext
path string
destinationPath string
includeDrafts bool
return Pretzel.Logic.Templating.Context.SiteContext

CanBeIncluded() public method

public CanBeIncluded ( string relativePath ) : bool
relativePath string
return bool

IsExcludedPath() public method

public IsExcludedPath ( string relativePath ) : bool
relativePath string
return bool

IsIncludedPath() public method

public IsIncludedPath ( string relativePath ) : bool
relativePath string
return bool

IsSpecialPath() public static method

public static IsSpecialPath ( string relativePath ) : bool
relativePath string
return bool

RemoveDiacritics() public static method

public static RemoveDiacritics ( string strThis ) : string
strThis string
return string