CSP update

This commit is contained in:
2016-11-03 16:54:30 +09:00
parent 50db360272
commit b4e9b6a15e
6 changed files with 46 additions and 23 deletions

View File

@ -20,12 +20,14 @@ func main() {
animeCSSBytes, _ := ioutil.ReadFile("anime.css")
css += string(animeCSSBytes)
app.SetStyle(css)
scripts, _ := ioutil.ReadFile("scripts.js")
js := string(scripts)
// Define layout
app.Layout = func(ctx *aero.Context, content string) string {
return Render.Layout(content, css)
return Render.Layout(content)
}
app.Register("/", func(ctx *aero.Context) string {