C# 클래스 Pretzel.Logic.Templating.Context.SiteContextGenerator

파일 보기 프로젝트 열기: Code52/pretzel 1 사용 예제들

공개 메소드들

메소드 설명
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