CHORE: officially renamed files to be deprecated and also made making

templates simpler
This commit is contained in:
2026-10-19 14:29:51 -04:00
parent 380f295c93
commit e2864159a8
10 changed files with 550 additions and 496 deletions
+14
View File
@@ -0,0 +1,14 @@
local M = {}
function M.imp(ft, template, name)
ft, template, name = ft or "", template or "", name or ""
if ft == "" or template == "" or name == "" then
return
end
local ok, mod = pcall(require, "vern.templates." .. ft)
if ok and type(mod) ~= "table" then
return string.gsub(mod[template], "%%s", name)
end
end
return M