Templates Class
Namespace
Statiq.Web
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IReadOnlyList<Template>"] Type-.->Interface1["IReadOnlyCollection<Template>"] Type-.->Interface2["IEnumerable<Template>"] Type-.->Interface3["IReadOnlyDictionary<string, Template>"] Type-.->Interface4["IReadOnlyCollection<KeyValuePair<string, Template>>"] Type-.->Interface5["IEnumerable<KeyValuePair<string, Template>>"] Type-.->Interface6["IEnumerable"] Type["Templates"] class Type type-node

Syntax

public class Templates : IReadOnlyList<Template>, IReadOnlyCollection<Template>, 
    IEnumerable<Template>, IReadOnlyDictionary<string, Template>, 
    IReadOnlyCollection<KeyValuePair<string, Template>>, 
    IEnumerable<KeyValuePair<string, Template>>, IEnumerable

Constructors

Name Summary
Templates()

Properties

Name Property Type Summary
Count int
Keys IEnumerable<string>
this[int] Template
this[string] Template
Values IEnumerable<Template>

Methods

Name Return Value Summary
Add(string, Template) void
Clear() void
ContainsKey(string) bool
GetEnumerator() IEnumerator<Template>
GetMediaTypes(ContentType, Phase) IEnumerable<string>
GetMediaTypes(ContentType) IEnumerable<string>
GetModule(ContentType, Phase) IModule
Gets a single module that runs all the matching templates for a given set of input documents.
IndexOf(string) int
Insert(int, string, Template) void
Remove(string) bool
TryGetValue(string, Template) bool

Extension Methods

Name Value Summary
Contains<Template>(IReadOnlyList<Template>, EqualityComparer<Template>) bool
Contains<Template>(IReadOnlyList<Template>, int, EqualityComparer<Template>) bool
Contains<Template>(IReadOnlyList<Template>, int) bool
Contains<Template>(IReadOnlyList<Template>) bool
ContainsAnyKeys<string, Template>(IEnumerable<string>) bool
Determines whether the dictionary contains all the specified keys.
ContainsAnyKeys<string, Template>(string[]) bool
Determines whether the dictionary contains all the specified keys.
ContainsKeys<string, Template>(IEnumerable<string>) bool
Determines whether the dictionary contains all the specified keys.
ContainsKeys<string, Template>(string[]) bool
Determines whether the dictionary contains all the specified keys.
IndexOf<Template>(IReadOnlyList<Template>, EqualityComparer<Template>) int
IndexOf<Template>(IReadOnlyList<Template>) int
RequireKeys<string, Template>(IEnumerable<string>) void
Verifies that a dictionary contains all requires keys. An System.ArgumentException will be thrown if the specified keys are not all present in the dictionary.
RequireKeys<string, Template>(string[]) void
Verifies that a dictionary contains all requires keys. An System.ArgumentException will be thrown if the specified keys are not all present in the dictionary.
ThrowIfNull<Templates>(string) T
ToDocument<Templates>(IContentProvider) IDocument
ToDocument<Templates>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<Templates>(NormalizedPath, IContentProvider) IDocument
ToDocument<Templates>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<Templates>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<Templates>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument