;; copy fennel.lua into ~/.local/share/The Powder Toy
;; (or wherever the data folder is on your OS)
;; put this in autorun.lua in the same dir:
;; require("fennel").dofile("hello-powdertoy.fnl")

;; that will run this:

(print "I'm running from inside Powder Toy")
(print "Here are all the globals in Powder Toy's API:")
(each [k v (pairs _G)]
  (print k v))

Generated by Phil Hagelberg using scpaste at Thu Apr 14 13:21:29 2022. PDT. (original)