MarkdownPage
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class MarkdownPage : IExpirable, IViewPage
Properties
Markdown
View Source
Declaration
public MarkdownFormat Markdown { get; set; }
PageType
View Source
Declaration
public MarkdownPageType PageType { get; set; }
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; }
HtmlContents
View Source
Declaration
public string HtmlContents { get; set; }
Template
View Source
Declaration
public string Template { get; set; }
DirectiveTemplate
View Source
Declaration
public string DirectiveTemplate { get; set; }
ExecutionContext
View Source
Declaration
public EvaluatorExecutionContext ExecutionContext { get; }
LastModified
View Source
Declaration
public DateTime? LastModified { get; set; }
Dependents
View Source
Declaration
public List<IExpirable> Dependents { get; }
Evaluator
View Source
Declaration
public Evaluator Evaluator { get; }
MarkdownBlocks
View Source
Declaration
public TemplateBlock[] MarkdownBlocks { get; set; }
HtmlBlocks
View Source
Declaration
public TemplateBlock[] HtmlBlocks { get; set; }
IsCompiled
View Source
Declaration
public bool IsCompiled { get; set; }
Fields
ModelName
View Source
Declaration
public const string ModelName = "Model"
Methods
GetLastModified()
View Source
Declaration
public DateTime? GetLastModified()
Returns
System.Nullable<System.DateTime>
GetTemplatePath()
View Source
Declaration
public string GetTemplatePath()
Returns
System.String
GetNextId()
View Source
Declaration
public int GetNextId()
Returns
System.Int32
Reload(String, DateTime)
View Source
Declaration
public void Reload(string contents, DateTime lastModified)
Parameters
Type | Name |
---|---|
System.String | contents |
System.DateTime | lastModified |
Compile(Boolean)
View Source
Declaration
public void Compile(bool force = false)
Parameters
Type | Name |
---|---|
System.Boolean | force |
Write(TextWriter, PageContext)
View Source
Declaration
public void Write(TextWriter textWriter, PageContext pageContext)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | textWriter |
ServiceStack.Support.Markdown.PageContext | pageContext |