News for hackers. Stuff that matters.
Re:Jsonnet – A data templating language by Rygu on Sunday June 24, 2018 @02:26AM (#17385263)
I'd prefer to use .js for configs.
Re:Jsonnet – A data templating language by jackfraser on Sunday June 24, 2018 @02:52AM (#17385342)
This is why other people are suggesting that this is close to a reimplementation of Lisp - what you want by using a .js for your config is the right to use any kind of dynamic definition that suits your needs down the line, and have the application consume that config through some standard function call(s). When lists are code are lists, it's easy to make anything infinitely dynamic.
Re:Jsonnet – A data templating language by xellisx on Sunday June 24, 2018 @03:41PM (#17388036)
Wanna get crazy, here's a PHP .INI configuration system. =) https://github.com/ellisgl/GeekLab-INIConf