app

package
v0.0.0-...-c7bdee8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2013 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeaderFilter = func(c *revel.Controller, fc []revel.Filter) {

	c.Response.Out.Header().Add("X-Frame-Options", "SAMEORIGIN")
	c.Response.Out.Header().Add("X-XSS-Protection", "1; mode=block")
	c.Response.Out.Header().Add("X-Content-Type-Options", "nosniff")

	fc[0](c, fc[1:])
}
View Source
var TemplateInfoFilter = func(c *revel.Controller, fc []revel.Filter) {
	var info = Info{
		Name:      revel.Config.StringDefault("info.name", ""),
		Tagline:   revel.Config.StringDefault("info.tagline", ""),
		Email:     revel.Config.StringDefault("info.email", ""),
		Twitter:   revel.Config.StringDefault("info.twitter", ""),
		Github:    revel.Config.StringDefault("info.github", ""),
		UseGa:     revel.Config.BoolDefault("info.use_ga", false),
		GaId:      revel.Config.StringDefault("info.ga_id", ""),
		UseGauges: revel.Config.BoolDefault("info.use_gauges", false),
		GaugesId:  revel.Config.StringDefault("info.gauges_id", ""),
		Domain:    revel.Config.StringDefault("info.domain", ""),
		UseDisqus: revel.Config.BoolDefault("info.use_disqus", false),
		DisqusId:  revel.Config.StringDefault("info.disqus_id", ""),
	}
	c.RenderArgs["info"] = info

	fc[0](c, fc[1:])
}

Functions

This section is empty.

Types

type Info

type Info struct {
	Name      string
	Tagline   string
	Email     string
	Twitter   string
	Github    string
	UseGa     bool
	GaId      string
	UseGauges bool
	GaugesId  string
	Domain    string
	UseDisqus bool
	DisqusId  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL