init repo
This commit is contained in:
commit
174258c611
11 changed files with 11589 additions and 0 deletions
20
main.lua
Normal file
20
main.lua
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue