TextBlock
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class TextBlock : TemplateBlock, ITemplateWriter
Properties
Content
View Source
Declaration
public string Content { 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
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 |
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 |