You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plop is essentially glue code between [inquirer](https://github.com/SBoudrias/Inquirer.js/) prompts and [handlebar](https://github.com/wycats/handlebars.js/) templates. You can also add your own handlebar helper methods and use them in your templates.
@@ -127,14 +130,14 @@ The `Add` and `Modify` actions will take care of almost every case that plop is
127
130
128
131
_See the [example plopfile](https://github.com/amwmedia/plop/blob/master/example/plopfile.js) for a sample synchronous custom action._
129
132
130
-
### Using an Actions Function
131
-
Alternatively, `actions` can be a function that takes responses `data` as a parameter and should return an array of actions.
133
+
### Using a Dynamic Action Array
134
+
Alternatively, `actions` can itself be a function that takes responses `data` as a parameter and should return the actions array.
132
135
133
136
This allows you to adapt actions to provided answers:
0 commit comments