This commit is contained in:
2024-05-20 20:23:38 -07:00
commit 578313417b
9 changed files with 354 additions and 0 deletions

12
utils.fnl Normal file
View File

@ -0,0 +1,12 @@
(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