parent
821c7c7eaa
commit
df525ce44a
@ -0,0 +1,15 @@
|
||||
package tmpl
|
||||
|
||||
import "net/http"
|
||||
|
||||
type DetailHtml struct {
|
||||
*CommonHtml
|
||||
Fid string
|
||||
Id uint32
|
||||
}
|
||||
func NewDetailHtml(w http.ResponseWriter)*DetailHtml{
|
||||
obj:=new(DetailHtml)
|
||||
parent:=NewRender(w)
|
||||
obj.CommonHtml=parent
|
||||
return obj
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package tmpl
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
type ViewHtml struct{
|
||||
CommonHtml
|
||||
Fid string
|
||||
Id uint32
|
||||
}
|
||||
func RenderView(w http.ResponseWriter, data interface{}) {
|
||||
render:=NewRender(w)
|
||||
data.(*ViewHtml).Nav=render.Nav
|
||||
data.(*ViewHtml).Header=render.Header
|
||||
render.Display("view",data)
|
||||
}
|
@ -1 +0,0 @@
|
||||
package tmpl
|
Loading…
Reference in new issue