From f4dde9202f520a8739966be25a1ec4e5d64a98b2 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Thu, 26 Jan 2023 02:27:22 +0100 Subject: [PATCH] support backward compatible with old API --- silkmvc/core/std.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/silkmvc/core/std.lua b/silkmvc/core/std.lua index 17d9a4a..3f78c60 100644 --- a/silkmvc/core/std.lua +++ b/silkmvc/core/std.lua @@ -132,6 +132,11 @@ function std.f(path) fcgio:send_file(path) end +function std.t(...) + echo(...) +end + + function std.html() std.header("Content-Type", "text/html; charset=utf-8") std.header_flush()