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
Type | Name |
---|---|
System.String | templateContents |
System.DateTime | lastModified |
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
Type | Name |
---|---|
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
Type | Name |
---|---|
ServiceStack.Markdown.MarkdownViewBase | instance |
System.IO.TextWriter | textWriter |
System.Collections.Generic.Dictionary<System.String,System.Object> | scopeArgs |