C# Class Pretzel.Logic.Templating.JekyllEngineBase

Inheritance: ISiteEngine
Show file Open project: Code52/pretzel

Protected Properties

Property Type Description
Context Pretzel.Logic.Templating.Context.SiteContext

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Protected Methods

Method Description
PreProcess ( ) : void
RenderTemplate ( string content, Pretzel.Logic.Templating.Context.PageContext pageData ) : string

Private Methods

Method Description
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

Method Details

CanProcess() public method

public CanProcess ( Pretzel.Logic.Templating.Context.SiteContext context ) : bool
context Pretzel.Logic.Templating.Context.SiteContext
return bool

CopyFileIfSourceNewer() public method

public CopyFileIfSourceNewer ( string sourceFileName, string destFileName, bool overwrite ) : void
sourceFileName string
destFileName string
overwrite bool
return void

Initialize() public abstract method

public abstract Initialize ( ) : void
return void

PreProcess() protected abstract method

protected abstract PreProcess ( ) : void
return void

Process() public method

public Process ( Pretzel.Logic.Templating.Context.SiteContext siteContext, bool skipFileOnError = false ) : void
siteContext Pretzel.Logic.Templating.Context.SiteContext
skipFileOnError bool
return void

RenderTemplate() protected abstract method

protected abstract RenderTemplate ( string content, Pretzel.Logic.Templating.Context.PageContext pageData ) : string
content string
pageData Pretzel.Logic.Templating.Context.PageContext
return string

Property Details

Context protected property

protected SiteContext,Pretzel.Logic.Templating.Context Context
return Pretzel.Logic.Templating.Context.SiteContext