Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArticleCache map[string]*models.ArticleInfo
View Source
var ArticleList []models.ArticleInfo
View Source
var BaseDir string
View Source
var DocBaseDir string
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:])
}
TODO turn this into revel.HeaderFilter should probably also have a filter for CSRF not sure if it can go in the same filter or not
View Source
var ReaderCounts = make(map[string]int)
View Source
var SiteTitle string
View Source
var VisitorCount int64 = 0
Functions ¶
func LoadContent ¶
func LoadContent(a *models.ArticleInfo) error
func RecordVisit ¶
func RecordVisit(c *revel.Controller) revel.Result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.