C# Класс ToSic.SexyContent.Internal.TemplateManager

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
App System.App

Открытые методы

Метод Описание
CreateTemplateFileIfNotExists ( string name, string type, string location, HttpServerUtility server, string contents = "" ) : string

Creates a template file if it does not already exists, and uses a default text to insert. Returns the new path

EnsureTemplateFolderExists ( string templateLocation ) : void

Creates a directory and copies the needed web.config for razor files if the directory does not exist.

GetTemplateFiles ( HttpServerUtility server, string templateType, string templateLocation ) : IEnumerable

Returns all template files in the template folder.

GetTemplatePathRoot ( string locationId, System.App app ) : string

Returns the location where Templates are stored for the current app

TemplateManager ( System.App app ) : System

Описание методов

CreateTemplateFileIfNotExists() публичный Метод

Creates a template file if it does not already exists, and uses a default text to insert. Returns the new path
public CreateTemplateFileIfNotExists ( string name, string type, string location, HttpServerUtility server, string contents = "" ) : string
name string
type string
location string
server System.Web.HttpServerUtility
contents string
Результат string

EnsureTemplateFolderExists() публичный Метод

Creates a directory and copies the needed web.config for razor files if the directory does not exist.
public EnsureTemplateFolderExists ( string templateLocation ) : void
templateLocation string
Результат void

GetTemplateFiles() публичный Метод

Returns all template files in the template folder.
public GetTemplateFiles ( HttpServerUtility server, string templateType, string templateLocation ) : IEnumerable
server System.Web.HttpServerUtility
templateType string
templateLocation string
Результат IEnumerable

GetTemplatePathRoot() публичный статический Метод

Returns the location where Templates are stored for the current app
public static GetTemplatePathRoot ( string locationId, System.App app ) : string
locationId string
app System.App
Результат string

TemplateManager() публичный Метод

public TemplateManager ( System.App app ) : System
app System.App
Результат System

Описание свойств

App публичное свойство

public App,System App
Результат System.App