C# Класс Pretzel.Logic.Templating.Context.SiteContextGenerator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BuildContext() публичный Метод

public BuildContext ( string path, string destinationPath, bool includeDrafts ) : Pretzel.Logic.Templating.Context.SiteContext
path string
destinationPath string
includeDrafts bool
Результат Pretzel.Logic.Templating.Context.SiteContext

CanBeIncluded() публичный Метод

public CanBeIncluded ( string relativePath ) : bool
relativePath string
Результат bool

IsExcludedPath() публичный Метод

public IsExcludedPath ( string relativePath ) : bool
relativePath string
Результат bool

IsIncludedPath() публичный Метод

public IsIncludedPath ( string relativePath ) : bool
relativePath string
Результат bool

IsSpecialPath() публичный статический Метод

public static IsSpecialPath ( string relativePath ) : bool
relativePath string
Результат bool

RemoveDiacritics() публичный статический Метод

public static RemoveDiacritics ( string strThis ) : string
strThis string
Результат string