We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
jinja is a horrible language to transform data structures before they are used by a block in another template.
I tried to fill extra_dependencies using jinja set. {% set extra_dependencies = ... %} does work, but it requires the exact same structure.
extra_dependencies
set
{% set extra_dependencies = ... %}
I couldnt transform existing data from a different structure.
Anyway, there could be a better way..
https://github.com/coala/coala-bears/blob/master/.moban.yaml overrides https://github.com/coala/coala-bears/blob/master/bear-requirements.yaml which has
pip_requirements: HTTPolice: version: ~=0.5.2 aenum: version: ~=2.0.8
I want it to look like
extra_dependencies: - all: - HTTPolice~=0.5.2 - aenum~=2.0.8
One way to do this is to incorporate a transform system like https://github.com/dreftymac/dynamic.yaml
Another is #23
I assume the same problem occurs in reverse. e.g. If I have configuration data in format
a: - b: z c: y d: x
But a template supports multiple values, and thus wants it in a structure like
a: b: - z c: - y d: - x
The text was updated successfully, but these errors were encountered:
I suppose two filters are needed.
For now, I have not thought about moban file import. Configuration file override and template override are in place.
Sorry, something went wrong.
one feasible and very generic approach is to have a yaml -> yaml target which uses jinja to do the transform, and load the generated yaml. I.e. #127
this topic has a lot of tangible values and with this issue resolved, moban will have an edge over other cli commands.
a further thought on this: a specific data transformer is required per use case, because input data structure and output data structure varies.
No branches or pull requests
jinja is a horrible language to transform data structures before they are used by a block in another template.
I tried to fill
extra_dependencies
using jinjaset
.{% set extra_dependencies = ... %}
does work, but it requires the exact same structure.I couldnt transform existing data from a different structure.
Anyway, there could be a better way..
https://github.com/coala/coala-bears/blob/master/.moban.yaml overrides
https://github.com/coala/coala-bears/blob/master/bear-requirements.yaml
which has
I want it to look like
One way to do this is to incorporate a transform system like https://github.com/dreftymac/dynamic.yaml
Another is #23
I assume the same problem occurs in reverse. e.g. If I have configuration data in format
But a template supports multiple values, and thus wants it in a structure like
The text was updated successfully, but these errors were encountered: