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
Type | Name |
---|---|
System.Collections.Generic.List<ServiceStack.Support.Markdown.StatementExprBlock> | allStatements |
OnFirstRun(Boolean)
View Source
Declaration
protected void OnFirstRun(bool applyToChildren)
Parameters
Type | Name |
---|---|
System.Boolean | applyToChildren |
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
Type | Name |
---|---|
ServiceStack.Markdown.MarkdownViewBase | instance |
System.IO.TextWriter | textWriter |
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
Type | Name |
---|---|
System.String | content |
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
Type | Name |
---|---|
ServiceStack.Markdown.MarkdownViewBase | instance |
System.IO.TextWriter | textWriter |
System.Collections.Generic.Dictionary<System.String,System.Object> | scopeArgs |
Inherited Methods
AddEvalItem(EvaluatorItem)
View Source
Declaration
public void AddEvalItem(EvaluatorItem evalItem)
Parameters
Type | Name |
---|---|
ServiceStack.Support.Markdown.EvaluatorItem | evalItem |
AfterFirstRun(Evaluator)
View Source
Declaration
public void AfterFirstRun(Evaluator evaluator)
Parameters
Type | Name |
---|---|
ServiceStack.Support.Markdown.Evaluator | evaluator |
CleanHtml(String)
View Source
Declaration
public static string CleanHtml(string html)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | html |
CreatePageContext()
View Source
Declaration
protected PageContext CreatePageContext()
Returns
ServiceStack.Support.Markdown.PageContext
DoFirstRun(PageContext)
View Source
Declaration
public void DoFirstRun(PageContext pageContext)
Parameters
Type | Name |
---|---|
ServiceStack.Support.Markdown.PageContext | pageContext |
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
Type | Name |
---|---|
System.String | markdownText |
TransformHtml(String)
View Source
Declaration
public string TransformHtml(string markdownText)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | markdownText |
Write(MarkdownViewBase, TextWriter, Dictionary<String, Object>)
View Source
Declaration
public abstract void Write(MarkdownViewBase instance, TextWriter textWriter, Dictionary<string, object> scopeArgs)
Parameters
Type | Name |
---|---|
ServiceStack.Markdown.MarkdownViewBase | instance |
System.IO.TextWriter | textWriter |
System.Collections.Generic.Dictionary<System.String,System.Object> | scopeArgs |