C# 클래스 ToSic.SexyContent.Internal.TemplateManager

파일 보기 프로젝트 열기: 2sic/2sxc 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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