bunbun.dev/utils.fnl
2024-05-20 20:23:38 -07:00

13 lines
270 B
Fennel

(local utils {})
(fn utils.file-exists? [file-path]
(let [file (io.open file-path :r)]
(if file (do
(file:close) true) false)))
(fn utils.compile-sass [file-path]
(with-open [out (io.popen (.. "sass -q " file-path))]
(out:read :*a)))
utils