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

Afficher le fichier Open project: Code52/pretzel Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CanBeIncluded() public méthode

public CanBeIncluded ( string relativePath ) : bool
relativePath string
Résultat bool

IsExcludedPath() public méthode

public IsExcludedPath ( string relativePath ) : bool
relativePath string
Résultat bool

IsIncludedPath() public méthode

public IsIncludedPath ( string relativePath ) : bool
relativePath string
Résultat bool

IsSpecialPath() public static méthode

public static IsSpecialPath ( string relativePath ) : bool
relativePath string
Résultat bool

RemoveDiacritics() public static méthode

public static RemoveDiacritics ( string strThis ) : string
strThis string
Résultat string