C# Класс Pretzel.Logic.Templating.JekyllEngineBase

Наследование: ISiteEngine
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Context Pretzel.Logic.Templating.Context.SiteContext

Private Properties

Свойство Тип Описание
CreateOutputDirectory void
FindLayoutPath string
GetContentExcerpt string
GetNext Pretzel.Logic.Templating.Context.Page
GetPrevious Pretzel.Logic.Templating.Context.Page
MapToOutputPath string
ProcessFile void
ProcessTemplate object>.IDictionary
RenderContent string

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

Метод Описание
CanProcess ( Pretzel.Logic.Templating.Context.SiteContext context ) : bool
CopyFileIfSourceNewer ( string sourceFileName, string destFileName, bool overwrite ) : void
Initialize ( ) : void
Process ( Pretzel.Logic.Templating.Context.SiteContext siteContext, bool skipFileOnError = false ) : void

Защищенные методы

Метод Описание
PreProcess ( ) : void
RenderTemplate ( string content, Pretzel.Logic.Templating.Context.PageContext pageData ) : string

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

Метод Описание
CreateOutputDirectory ( string outputFile ) : void
FindLayoutPath ( string layout ) : string
GetContentExcerpt ( string content, string excerptSeparator ) : string
GetNext ( IList pages, int index ) : Pretzel.Logic.Templating.Context.Page
GetPrevious ( IList pages, int index ) : Pretzel.Logic.Templating.Context.Page
MapToOutputPath ( string file ) : string
ProcessFile ( string outputDirectory, Pretzel.Logic.Templating.Context.Page page, Pretzel.Logic.Templating.Context.Page previous, Pretzel.Logic.Templating.Context.Page next, bool skipFileOnError, string relativePath = "" ) : void
ProcessTemplate ( Pretzel.Logic.Templating.Context.PageContext pageContext, string path ) : object>.IDictionary
RenderContent ( string file, string contents ) : string

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

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

public CanProcess ( Pretzel.Logic.Templating.Context.SiteContext context ) : bool
context Pretzel.Logic.Templating.Context.SiteContext
Результат bool

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

public CopyFileIfSourceNewer ( string sourceFileName, string destFileName, bool overwrite ) : void
sourceFileName string
destFileName string
overwrite bool
Результат void

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

public abstract Initialize ( ) : void
Результат void

PreProcess() защищенный абстрактный Метод

protected abstract PreProcess ( ) : void
Результат void

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

public Process ( Pretzel.Logic.Templating.Context.SiteContext siteContext, bool skipFileOnError = false ) : void
siteContext Pretzel.Logic.Templating.Context.SiteContext
skipFileOnError bool
Результат void

RenderTemplate() защищенный абстрактный Метод

protected abstract RenderTemplate ( string content, Pretzel.Logic.Templating.Context.PageContext pageData ) : string
content string
pageData Pretzel.Logic.Templating.Context.PageContext
Результат string

Описание свойств

Context защищенное свойство

protected SiteContext,Pretzel.Logic.Templating.Context Context
Результат Pretzel.Logic.Templating.Context.SiteContext