Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Build entire folder #90

Open
Dzivo opened this issue Mar 11, 2019 · 2 comments
Open

Feature request: Build entire folder #90

Dzivo opened this issue Mar 11, 2019 · 2 comments

Comments

@Dzivo
Copy link

Dzivo commented Mar 11, 2019

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
Copy link

This would be a good idea

@michaelbrazell
Copy link

michaelbrazell commented Jan 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants