media, output: Add CSV type and format

And make CSS correclty behave as plain text.
This commit is contained in:
Bjørn Erik Pedersen
2017-04-01 15:12:31 +02:00
parent 05949c9038
commit f911b107ef
4 changed files with 30 additions and 6 deletions

View File

@@ -43,10 +43,18 @@ var (
}
CSSFormat = Format{
Name: "CSS",
MediaType: media.CSSType,
BaseName: "styles",
Rel: "stylesheet",
Name: "CSS",
MediaType: media.CSSType,
BaseName: "styles",
IsPlainText: true,
Rel: "stylesheet",
}
CSVFormat = Format{
Name: "CSV",
MediaType: media.CSVType,
BaseName: "index",
IsPlainText: true,
Rel: "alternate",
}
HTMLFormat = Format{