show running commit in footer
This commit is contained in:
2
app.lua
2
app.lua
@ -3,6 +3,7 @@ local app = lapis.Application()
|
||||
local constants = require("constants")
|
||||
local babycode = require("lib.babycode")
|
||||
local html_escape = require("lapis.html").escape
|
||||
local config = require("lapis.config").get()
|
||||
|
||||
local db = require("lapis.db")
|
||||
-- sqlite starts without foreign key enforcement
|
||||
@ -17,6 +18,7 @@ local function inject_constants(req)
|
||||
req.constants = constants
|
||||
math.randomseed(os.time())
|
||||
req.__cachebust = math.random(99999)
|
||||
req.__commit = config.commit
|
||||
end
|
||||
|
||||
local function inject_methods(req)
|
||||
|
Reference in New Issue
Block a user