jondot / hygen

The simple, fast, and scalable code generator that lives in your project.

Home Page:http://www.hygen.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get the value of prompts entered for one set of templates into another templates for further use?

DIVANSHMAHAJAN opened this issue · comments

Suppose we have 2 templates and one of them is for creating the main structure of the project including all folders and files and requires a name field .
Now our 2nd template is especially for creating files in one folder of the above created project and also injects some template code into the previously created folder's file (for which name is reqd as well in the to field ).
Is there a possible solution for this scenario?
Also does regex work in injection template
eg: to: app/*.js (which helps to push to js file inside appp folder assuming only 1js file is present )
Currently this gives error and exact name of js file is reqd.