init repo

This commit is contained in:
Travis Shears 2026-05-27 15:41:03 +01:00
commit 174258c611
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
11 changed files with 11589 additions and 0 deletions

20
main.lua Normal file
View file

@ -0,0 +1,20 @@
-- Mostly from https://sr.ht/~benthor/absolutely-minimal-love2d-fennel/
-- But added the allowedGlobals=false option
fennel = require("fennel")
debug.traceback = fennel.traceback
table.insert(package.loaders, function(filename)
if love.filesystem.getInfo(filename) then
return function(...)
return fennel.eval(
love.filesystem.read(filename),
{ env = _G, filename = filename, allowedGlobals = false },
...
),
filename
end
end
end)
-- jump into Fennel
require("bootstrap.fnl")