mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-01-22 04:34:29 -08:00
13 lines
270 B
Fennel
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
|