Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can plop produce files based on json file inputs? #432

Open
meleklassoued opened this issue Apr 15, 2024 · 1 comment
Open

Can plop produce files based on json file inputs? #432

meleklassoued opened this issue Apr 15, 2024 · 1 comment

Comments

@meleklassoued
Copy link

Description :

I want to generate some files using pre-prepared templates. I'd like to pass a JSON file to the prompt, which will allow for the direct generation of the templates based on its content.

@amwmedia
Copy link
Member

You should be able to use the normal node API to load and parse data out of a JSON file and pass it to actions that you want to execute. Each Action supports a data prop as part of the API. An object passed to this prop will be merged with user answer data before running the action.

@meleklassoued meleklassoued changed the title Can plop generate files from json files inputs ? Can plop produce files based on json file inputs? Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants