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

Add a way of asking more questions within a template #46

Open
rmunn opened this issue Jul 23, 2016 · 0 comments
Open

Add a way of asking more questions within a template #46

rmunn opened this issue Jul 23, 2016 · 0 comments

Comments

@rmunn
Copy link
Contributor

rmunn commented Jul 23, 2016

In addition to #42, I would like to be able to ask the user several questions after they select a template. For example, I'd like to copy Eto's project templates for Visual Studio to make them available in Ionide. Those templates ask the user several questions, like "Do you want to use one project per platform (recommended), or combine all platforms into a single project?" and "Do you want to use XAML, JSON, or F# code for your UI elements?" Then based on the user's choices, the template is customized appropriately.

With the current generator-fsharp setup, I could simulate this by creating several templates with names like EtoMultiProject and EtoSingleProject. But that would bloat the list of available templates to no good purpose, and probably confuse newbies. (I'm confused enough already by having bare names with no description, which is why I opened #45 to suggest adding descriptions that the user can see when selecting templates). I would prefer to be able to take a single template and tweak it according to the user's choices. Perhaps #42 could be adapted to that purpose; if the user's choices could be passed as command-line parameters to the script, or as function parameters to some template-specified piece of Javascript code, that would allow adequate template customization.

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

1 participant