Skip to main content

DirectiveBlock

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

Properties

BaseType

View Source
Declaration
public Type BaseType { get; set; }

GenericArgs

View Source
Declaration
public Type[] GenericArgs { get; set; }

Helpers

View Source
Declaration
public Dictionary<string, Type> Helpers { get; set; }

TemplatePath

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

VarDeclarations

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

Inherited Properties

ChildBlocks

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

Condition

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

Id

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

Statement

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

Methods

GetType(String)

View Source
Declaration
public Type GetType(string typeName)
Returns

System.Type

Parameters
TypeName
System.StringtypeName

OnFirstRun()

View Source
Declaration
protected override void OnFirstRun()

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

Inherited Methods

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

OnAfterFirstRun()

View Source
Declaration
protected override void OnAfterFirstRun()

OnFirstRun()

View Source
Declaration
protected override void OnFirstRun()

OnFirstRun(Boolean)

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

Prepare(List<StatementExprBlock>)

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

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

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

Implements