Skip to main content

MarkdownTemplate

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

Properties

FilePath

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

Name

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

Contents

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

LastModified

View Source
Declaration
public DateTime? LastModified { get; set; }

TextBlocks

View Source
Declaration
public string[] TextBlocks { get; set; }

VarRefBlocks

View Source
Declaration
public string[] VarRefBlocks { get; set; }

Fields

BodyPlaceHolder

View Source
Declaration
public static string BodyPlaceHolder

PlaceHolderPrefix

View Source
Declaration
public static string PlaceHolderPrefix

PlaceHolderSuffix

View Source
Declaration
public static string PlaceHolderSuffix

Methods

Reload(String, DateTime)

View Source
Declaration
public void Reload(string templateContents, DateTime lastModified)
Parameters
TypeName
System.StringtemplateContents
System.DateTimelastModified

Prepare()

View Source
Declaration
public void Prepare()

RenderToString(Dictionary<String, Object>)

View Source
Declaration
public string RenderToString(Dictionary<string, object> scopeArgs)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>scopeArgs

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

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