use custom escape function

This commit is contained in:
2026-04-14 08:24:34 +02:00
parent fe70315a63
commit 49cc36ef31
3 changed files with 13 additions and 6 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
local to_json = require("lapis.util").to_json
local autoload = require("lapis.util").autoload
local escape = require("lapis.util").escape
local config = require("lapis.config")
local hotmixes = autoload("hotmixes")
@@ -18,7 +16,7 @@ local function Roothandler(self)
self.images = stuff.images
self.latestpath = latest_path
self.latestname = latest_name
self.functions = { escape = escape }
self.functions = { hotesc = hotmixes.utils.hotesc }
if self.titles['url'] == "panamaracing.club" then
return { render = "root", layout = require "views.prc_layout" }