C# Class Stubble.Core.Classes.Loaders.CompositeLoader

An IStubbleLoader with child loaders
Inheritance: IStubbleLoader
Mostra file Open project: StubbleOrg/Stubble Class Usage Examples

Public Methods

Method Description
AddLoader ( IStubbleLoader loader ) : CompositeLoader

Adds a new loader to the composite loader.

AddLoaders ( ) : CompositeLoader

Adds multiple loaders to the composite loader.

CompositeLoader ( ) : System.Collections.Generic

Initializes a new instance of the CompositeLoader class with child loaders.

Load ( string name ) : string

Loads a template with the given name. Returns null if the template is not found

Method Details

AddLoader() public method

Adds a new loader to the composite loader.
public AddLoader ( IStubbleLoader loader ) : CompositeLoader
loader IStubbleLoader The loader to add
return CompositeLoader

AddLoaders() public method

Adds multiple loaders to the composite loader.
public AddLoaders ( ) : CompositeLoader
return CompositeLoader

CompositeLoader() public method

Initializes a new instance of the CompositeLoader class with child loaders.
public CompositeLoader ( ) : System.Collections.Generic
return System.Collections.Generic

Load() public method

Loads a template with the given name. Returns null if the template is not found
When a template is not found in the loader
public Load ( string name ) : string
name string The name of the template to load
return string