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 ¶
Click to show internal directories.
Click to hide internal directories.