Closed theodesp closed 5 years ago
Hey @theodesp - thanks for submitting this feature request.
Unforunately, I don't think this is a feature that I will add any time soon. In my opinion, it should be done in a layer "above" survey. I think implementing this feature adds a whole family of issues and requests around different file formats (aka, why yaml
and not toml
, or hsl
, or xml
, or....). That being said, if you create a library that performs this conversion, I'd gladly link to it in the README.
Cool. We will leave it as an exercise then.
Hi @theodesp, inspired by this request I've made a package called surveygen
to create questions code from a yaml file. The tool generate questions as well as answers structure to store results.
The package is guumaster/surveygen and you can see an example
@AlecAivazis feel free to add a link to it if you like it.
Awesome
It would be nice if we could load surveys from yaml. For example:
Then use a loader to bind them to a questions struct: