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

Multiple outputs with with one template #445

Open RFMV34 opened 1 month ago

RFMV34 commented 1 month ago

Hi, Is possible in hygen to generate multiple files from one template? I need something like this, but I have not been able to find solution.

---
to: app/workers/file1.js
to: app/workers/file2.js
---

class <%= Name %> {
    work(){
        // your code here!
    }
}

Thanks for advice!