handlebars-lang / handlebars-lang/handlebars.js
Precompiler doesn't take directories as input
- Dominant language
- JavaScript
- Stars
- 18.7k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Research direction
Start by reproducing `handlebars test/ -f out.js` with Handlebars 4.7.8, then inspect the CLI precompiler entry point that parses template and directory arguments. Trace why a valid directory falls through to usage output; done means directory input, including subdirectories, compiles successfully and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- handlebars, javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100