CHORE: officially renamed files to be deprecated and also made making
templates simpler
This commit is contained in:
+2
-2
@@ -2,13 +2,13 @@ local M = {}
|
||||
|
||||
---@param path string
|
||||
---@param content string
|
||||
function M.write_file(path, content)
|
||||
function M.dump(path, content)
|
||||
local file = assert(io.open(path, "w"), "Error creating file: " .. path)
|
||||
file:write(content)
|
||||
file:close()
|
||||
end
|
||||
|
||||
function M.interpolate(str, ctx)
|
||||
function M.fmt(str, ctx)
|
||||
return (str:gsub("{([^}]+)}", ctx))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user