mattrobenolt / jinja2-cli

CLI for Jinja2
BSD 2-Clause "Simplified" License
514 stars 182 forks source link

Add support for Jsonnet #122

Open silopolis opened 1 year ago

silopolis commented 1 year ago

Hi,

First, many thanks for this priceless tool :pray: One of the hottest in my crate ! :fire:

Now for the request, as spoiled by title, it'd be great to support Jsonnet. This language has many "dynamic" features (variables, conditionals, etc.) that set it apart of the crowd, FTW.

Python bindings are already there so hopefully this may not be to much of a burden...

Thanks in advance TY J

mattrobenolt commented 1 year ago

Can you explain a use case for this? From my very light understanding of Jsonnet, IMO, jinja2-cli is an alternative to this, and I'm not sure how or why you'd use them together.

I'm down to add it as optional support, I would just like to see the use case you're thinking of.

silopolis commented 11 months ago

For my use case, DevOps projects, where config data files may be consumed by several languages as well as templating engine, having just enough smartness at data level may help maintain a SSoT and stay DRY by avoiding repeating the same parsing and manipulations for each consumer.

Thanks a lot for caring Have a beautiful day J