jondot / hygen

The simple, fast, and scalable code generator that lives in your project.
http://www.hygen.io
MIT License
5.57k stars 252 forks source link

How to ignore template directories? #414

Open luissalgadofreire opened 1 year ago

luissalgadofreire commented 1 year ago

I have seen the docs and searched the issues but couldn't find a clear answer to the question.

How can I have hygen ignore a template subdirectory that contains, for example, static assets.

I've seen mention of .hygenignore, which is in the source code, but can't exactly work out how it works. I have tried and place a .hygenignore at the root of the repo, and at the root of the command. None worked.

# .hygenignore
img/

The docs don't mention this possibility at all. The issues are not clear on instructions of how to achieve the same.

Any clues?