2014-08-29 21:49:50 +04:00
|
|
|
// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2014-07-15 19:41:56 +04:00
|
|
|
package render
|
|
|
|
|
2015-05-07 13:44:52 +03:00
|
|
|
import "net/http"
|
2015-03-08 19:50:58 +03:00
|
|
|
|
2015-05-07 13:44:52 +03:00
|
|
|
type Render interface {
|
2015-05-18 16:45:24 +03:00
|
|
|
Write(http.ResponseWriter) error
|
2015-05-07 13:44:52 +03:00
|
|
|
}
|
2014-07-15 19:41:56 +04:00
|
|
|
|
|
|
|
var (
|
2015-05-18 16:45:24 +03:00
|
|
|
_ Render = JSON{}
|
|
|
|
_ Render = IndentedJSON{}
|
|
|
|
_ Render = XML{}
|
|
|
|
_ Render = String{}
|
|
|
|
_ Render = Redirect{}
|
|
|
|
_ Render = Data{}
|
|
|
|
_ Render = HTML{}
|
|
|
|
_ Render = File{}
|
|
|
|
_ HTMLRender = HTMLDebug{}
|
|
|
|
_ HTMLRender = HTMLProduction{}
|
2014-07-15 19:41:56 +04:00
|
|
|
)
|