Add test code
This commit is contained in:
parent
813df834ab
commit
75c29093b3
|
@ -16,6 +16,11 @@ type AuthManager interface {
|
|||
DoAuth(w http.ResponseWriter, r *http.Request) (*AuthData, bool)
|
||||
}
|
||||
|
||||
type Authenticator interface {
|
||||
DoAuth(w http.ResponseWriter, r *http.Request) (*AuthData, bool)
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
func NewAuth(kind string) AuthManager {
|
||||
switch kind {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
skin-file
|
|
@ -0,0 +1,4 @@
|
|||
{{define "footer"}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
|
@ -0,0 +1,7 @@
|
|||
{{define "header"}}
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="stylesheet" href="/static/{{ .Theme }}/css/normalize.css">
|
||||
</head>
|
||||
<body>
|
||||
{{end}}
|
|
@ -0,0 +1,3 @@
|
|||
{{template "header" .}}
|
||||
Test of things
|
||||
{{template "footer" .}}
|
|
@ -0,0 +1,3 @@
|
|||
{{template "header" .}}
|
||||
User: {{ .User }}
|
||||
{{template "footer" .}}
|
Loading…
Reference in New Issue