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
Have you considered writing a program to generate one YAML file from the other. Or maybe generating both YAML files from some other shared input file?
The peru.yaml format is intended to be relatively simple, both to read and to write. I'm a little wary of adding more complicated behavior to it, because that would make it harder for other programs to parse it and figure out what it's doing.
#199 — partially related issue
1. Summary
It would be nice, if peru can get variables from another YAML files.
2. Argumentation
Don't Repeat Yourself.
At the time I need to write duplicate code for using Peru.
3. Example
3.1. Structure and files
Part of my real project structure:
peru.yaml
:site_variables.yaml
:pelican-config/pelican_plugins_settings.yaml
:3.2. Problem
I use duplicate values for:
pick
variable in peru andPLUGINS
variable for Pelican.imports.pelican-plugins
— peru;PLUGIN_PATHS
— Pelican.If I change Pelican variable, I need manually make the same change for peru. I need to repeat myself.
4. Not helped
include
orimport
statement. I can't find, how I can solve my problem use third-party tools.PLUGINS
variable name. I can't change it togit module pelican-plugins.pick
for using peru with--file-basename
flag.5. Example of expected behavior
peru.yaml
:Thanks.
The text was updated successfully, but these errors were encountered: