Skip to main content

StatementExprBlock

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

Properties

Condition

View Source
Declaration
public string Condition { get; set; }

Statement

View Source
Declaration
public string Statement { get; set; }

ChildBlocks

View Source
Declaration
public TemplateBlock[] ChildBlocks { get; set; }

Id

View Source
Declaration
public int Id { get; set; }

Inherited Properties

Evaluator

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

IsNested

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

Page

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

RenderHtml

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

ScopeArgs

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

WriteRawHtml

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

Methods

Prepare(List<StatementExprBlock>)

View Source
Declaration
protected virtual void Prepare(List<StatementExprBlock> allStatements)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.Support.Markdown.StatementExprBlock>allStatements

OnFirstRun(Boolean)

View Source
Declaration
protected void OnFirstRun(bool applyToChildren)
Parameters
TypeName
System.BooleanapplyToChildren

OnFirstRun()

View Source
Declaration
protected override void OnFirstRun()

OnAfterFirstRun()

View Source
Declaration
protected override void OnAfterFirstRun()

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

View Source
Declaration
public override 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

Extract(String, List<StatementExprBlock>)

View Source
Declaration
public static string Extract(string content, List<StatementExprBlock> allStatements)
Returns

System.String

Parameters
TypeName
System.Stringcontent
System.Collections.Generic.List<ServiceStack.Support.Markdown.StatementExprBlock>allStatements

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

View Source
Declaration
protected void WriteStatement(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

Inherited Methods

AddEvalItem(EvaluatorItem)

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

AfterFirstRun(Evaluator)

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

CleanHtml(String)

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

System.String

Parameters
TypeName
System.Stringhtml

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

OnAfterFirstRun()

View Source
Declaration
protected virtual void OnAfterFirstRun()

OnFirstRun()

View Source
Declaration
protected virtual void OnFirstRun()

Transform(String)

View Source
Declaration
public string Transform(string markdownText)
Returns

System.String

Parameters
TypeName
System.StringmarkdownText

TransformHtml(String)

View Source
Declaration
public string TransformHtml(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