Precompiler doesn't take directories as input
Hey,
I'm trying to use a directory (with subdirectories) as source for the handlebars cli, but every time I use a valid directory (e.g. handlebars test/ -f out.js) it just returns the help/usage advice.
Since the help states Usage: handlebars [template|directory]... I expected the command above to work. I'm on handlebars 4.7.8.
Best anghenfil
Did you try handlebars ./test/ -f out.js?
@jaylinski Yes, it will also just print the help/usage text
I just checked the code. It simply uses the input from the terminal (eg by using bash path name expansion).
So this works: handlebars ./test/*.hbs -f out.js because the shell expands ./test/*.hbs into ./test/file.hbs (for example).
Documentation could be improved here.