Skip to main content

HtmlTemplates

Load Embedded Resource Templates in ServiceStack. To get ServiceStack to use your own instead just add a copy of one or more of the following to your Web Root: ~/Templates/IndexOperations.html ~/Templates/OperationControl.html ~/Templates/HtmlFormat.html

Assembly: ServiceStack.dll
View Source
Declaration
public static class HtmlTemplates

Methods

GetIndexOperationsTemplate()

View Source
Declaration
public static string GetIndexOperationsTemplate()
Returns

System.String

GetOperationControlTemplate()

View Source
Declaration
public static string GetOperationControlTemplate()
Returns

System.String

GetMetadataDebugTemplate()

View Source
Declaration
public static string GetMetadataDebugTemplate()
Returns

System.String

GetLoginTemplate()

View Source
Declaration
public static string GetLoginTemplate()
Returns

System.String

GetHtmlFormatTemplate()

View Source
Declaration
public static string GetHtmlFormatTemplate()
Returns

System.String

GetSvgTemplatePath()

View Source
Declaration
public static string GetSvgTemplatePath()
Returns

System.String

GetTemplatePath(String)

View Source
Declaration
public static string GetTemplatePath(string templateName)
Returns

System.String

Parameters
TypeName
System.StringtemplateName

GetHtmlRedirectTemplate(String)

View Source
Declaration
public static string GetHtmlRedirectTemplate(string url)
Returns

System.String

Parameters
TypeName
System.Stringurl

Format(String, Object[])

View Source
Declaration
public static string Format(string template, params object[] args)
Returns

System.String

Parameters
TypeName
System.Stringtemplate
System.Object[]args