Feature request: Build entire folder
Dzivo opened this issue · 2 comments
Dzivo commented
Ability to build whole folder of haml files:
Syntax sugestion
--folder -f
--output -o
heml build -f Template -o Output
Root
├───Output
└───Templates
Command triggered in Root
pkleskovic commented
This would be a good idea
michaelbrazell commented
I had a similar request and handled this with a bash script. Doesn't solve your problem, but in lieu of this project not getting any active development, hoping this helps:
heml_build_directory.sh
for file in src/your_directory/*.heml
do
heml build "$file"
done
run ./heml_build_directory.sh
in your console.
It's not perfect but it goes through the directory you specify and finds each .heml file, and runs a basic build command. You can change the command how you need it. You could add a mv command after to move them to a specific output directory as well.