-
Notifications
You must be signed in to change notification settings - Fork 5
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
Consider using more powerful templating, e.g., cookiecutter #11
Comments
(I agree; it's the cost of providing this issue template to people who In short, WYSIWYG. When adopting I'm hoping that standards will converge, and that eventually the Memote cookiecutter would be the command-line utility for this purpose. It's also a way to avoid duplication of efforts. |
I'm definitely happy to work in that direction or to decouple it from memote entirely and make it stand-alone or more associated with this work. In fact, I'd be very happy if the cookiecutter were being developed and maintained by the group of people who use it the most, i.e., model builders. So let me know your ideas and we can start going in that direction. |
Would it not be possible to have the repository template as it is, and provide a cookiecutter solution? The python proficient could then use the cookiecutter, which replaces the template files, while the non-python enthousiasts can still manually edit |
Typically, cookiecutters create a project directory which would look ugly for use in a template repository (see, for example, https://github.com/opencobra/cookiecutter-memote). I'm not sure if this is a hard requirement at the moment. Having a |
The current version of |
I think it would be great to have a cookiecutter-option, I guess that template repository could be a separate one from this, e.g. .../cookiecutter-standard-GEM |
There is some value in having the model-specific values separated in a config file (eg Jinja). There are multiple ways of solving this, and indeed Looking back at the original post, the core problem seems to be that
In other words, as a user, I want to quickly (??) go through the required fields that I am expected to fill in, so that I can be compliant with @Midnighter, @edkerk and @sulheim, what would you say the underlying problem is:
|
I can't speak from a user perspective here but from experience, I am most worried about
|
Having used the template a few times, I agree with @Midnighter. |
I haven't used the template yet, but @Midnighter's concerncs seem the most reasonable |
(The issue template is not helpful for having discussions here 😉)
Search of the different fields denoted by
{{
is tedious and error prone. Cookiecutter provides a way to ask for these values before instantiating a template project structure with those values automatically. Of course, it is one more technology that users would have to learn (although quite straight forward). Is there any other reason why you decided against a technology like cookiecutter?The text was updated successfully, but these errors were encountered: