Contains common media types and file extension mappings.
- Namespace
- Statiq
.Common - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["MediaTypes"]
class Type type-node
Syntax
public static class MediaTypes
Properties
| Name | Property Type | Summary |
|---|---|---|
| CSharp | string |
static
|
| Css | string |
static
|
| ExtensionMappings | IDictionary |
A mapping of file extension to both registered IANA media types
as well as conventional unregistered media types.
This dictionary can be edited prior to execution to customize media types.
static
|
| Gif | string |
static
|
| Handlebars | string |
static
|
| Html | string |
static
|
| HtmlFragment | string |
static
|
| JavaScript | string |
static
|
| Jpg | string |
static
|
| Json | string |
static
|
| Less | string |
static
|
| Markdown | string |
static
|
| Png | string |
static
|
| Razor | string |
static
|
| Sass | string |
static
|
| Scss | string |
static
|
| Statiq | string |
static
|
| Xml | string |
static
|
| Yaml | string |
static
|
Methods
| Name | Return Value | Summary |
|---|---|---|
| Get |
string |
Given a file path, determine the media type.
static
|
| GetExtensions |
IEnumerable |
Gets the extensions for a given media type (including the preceding dot).
static
|
| TryGet |
bool |
Given a file path, determine the media type.
static
|