Skip to main content

TemplateBlock

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public abstract class TemplateBlock : ITemplateWriter

Properties

Page

View Source
Declaration
protected MarkdownPage Page { get; set; }

Evaluator

View Source
Declaration
protected Evaluator Evaluator { get; set; }

IsNested

View Source
Declaration
public bool IsNested { get; set; }

WriteRawHtml

View Source
Declaration
protected bool WriteRawHtml { get; set; }

RenderHtml

View Source
Declaration
protected bool RenderHtml { get; set; }

ScopeArgs

View Source
Declaration
protected Dictionary<string, object> ScopeArgs { get; set; }

Methods

CreatePageContext()

View Source
Declaration
protected PageContext CreatePageContext()
Returns

ServiceStack.Support.Markdown.PageContext

DoFirstRun(PageContext)

View Source
Declaration
public void DoFirstRun(PageContext pageContext)
Parameters
TypeName
ServiceStack.Support.Markdown.PageContextpageContext

AfterFirstRun(Evaluator)

View Source
Declaration
public void AfterFirstRun(Evaluator evaluator)
Parameters
TypeName
ServiceStack.Support.Markdown.Evaluatorevaluator

OnFirstRun()

View Source
Declaration
protected virtual void OnFirstRun()

OnAfterFirstRun()

View Source
Declaration
protected virtual void OnAfterFirstRun()

AddEvalItem(EvaluatorItem)

View Source
Declaration
public void AddEvalItem(EvaluatorItem evalItem)
Parameters
TypeName
ServiceStack.Support.Markdown.EvaluatorItemevalItem

TransformHtml(String)

View Source
Declaration
public string TransformHtml(string markdownText)
Returns

System.String

Parameters
TypeName
System.StringmarkdownText

CleanHtml(String)

View Source
Declaration
public static string CleanHtml(string html)
Returns

System.String

Parameters
TypeName
System.Stringhtml

Transform(String)

View Source
Declaration
public string Transform(string markdownText)
Returns

System.String

Parameters
TypeName
System.StringmarkdownText

Write(MarkdownViewBase, TextWriter, Dictionary<String, Object>)

View Source
Declaration
public abstract void Write(MarkdownViewBase instance, TextWriter textWriter, Dictionary<string, object> scopeArgs)
Parameters
TypeName
ServiceStack.Markdown.MarkdownViewBaseinstance
System.IO.TextWritertextWriter
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs

Implements