Skip to content

golang script to convert config files into jinja templates and extract the values into a yml file

License

Notifications You must be signed in to change notification settings

ORCID/jinjafier

Repository files navigation

jinjafier

Introduction

Jinjafier is a small script to convert and existing java properties file to a jinja2 template with an included yml file using the current values of the property file.

Rules for converting property files

The standards listed here are converted into jinja2 variables that are suitable to use as system environment variables (uppercase with _ as a delimiter.)

Property Note
my.main-project.person.first-name Kebab case, which is recommended for use in .properties and YAML files.
my.main-project.person.firstName Standard camel case syntax.
my.main-project.person.first_name Underscore notation, which is an alternative format for use in .properties and YAML files.
MY_MAINPROJECT_PERSON_FIRSTNAME Upper case format, which is recommended when using system environment variables.

About

golang script to convert config files into jinja templates and extract the values into a yml file

Resources

License

Stars

Watchers

Forks

Packages

No packages published