C# Class ScrewTurn.Wiki.Templates

Manages content templates.
显示文件 Open project: mono/ScrewTurnWiki

Public Methods

Method Description
AddTemplate ( string name, string content, IPagesStorageProviderV30 provider ) : bool

Adds a new content template.

Find ( string name ) : ContentTemplate

Finds a content template.

GetTemplates ( ) : List

Gets all the content templates.

ModifyTemplate ( ContentTemplate template, string content ) : bool

Modifies a content template.

RemoveTemplate ( ContentTemplate template ) : bool

Removes a content template.

Method Details

AddTemplate() public static method

Adds a new content template.
public static AddTemplate ( string name, string content, IPagesStorageProviderV30 provider ) : bool
name string The name of the template.
content string The content of the template.
provider IPagesStorageProviderV30 The target provider (null for the default provider).
return bool

Find() public static method

Finds a content template.
public static Find ( string name ) : ContentTemplate
name string The name of the template to find.
return ContentTemplate

GetTemplates() public static method

Gets all the content templates.
public static GetTemplates ( ) : List
return List

ModifyTemplate() public static method

Modifies a content template.
public static ModifyTemplate ( ContentTemplate template, string content ) : bool
template ContentTemplate The template to modify.
content string The new content of the template.
return bool

RemoveTemplate() public static method

Removes a content template.
public static RemoveTemplate ( ContentTemplate template ) : bool
template ContentTemplate The template to remove.
return bool