Remove ContentType from Document
This commit is contained in:
parent
489e6a8425
commit
ceff4d1205
@ -10,7 +10,6 @@ type Document struct {
|
||||
Author string
|
||||
Title string
|
||||
Extends string
|
||||
ContentType string
|
||||
|
||||
// WORM:
|
||||
environment *Environment
|
||||
@ -42,7 +41,6 @@ func (this *Document) Execute (output io.Writer, data ExecutionData) error {
|
||||
Author: this.Author,
|
||||
Title: this.Title,
|
||||
Extends: this.Extends,
|
||||
ContentType: this.ContentType,
|
||||
FrontMatter: this.frontMatter,
|
||||
Body: template.HTML(outputBuilder.String()),
|
||||
},
|
||||
@ -60,7 +58,6 @@ type ExecutionResult struct {
|
||||
Author string
|
||||
Title string
|
||||
Extends string
|
||||
ContentType string
|
||||
|
||||
FrontMatter FrontMatter
|
||||
Body template.HTML
|
||||
|
@ -106,9 +106,6 @@ func (this *Environment) parse (name string, modTime time.Time, input io.Reader)
|
||||
if extends, ok := frontMatter["extends"]; ok {
|
||||
document.Extends = extends
|
||||
}
|
||||
if contentType, ok := frontMatter["content-type"]; ok {
|
||||
document.ContentType = contentType
|
||||
}
|
||||
|
||||
// parse template from the body
|
||||
document.template.Funcs(this.funcMap)
|
||||
|
Loading…
Reference in New Issue
Block a user