$ echo 'x is {x}' > template.txt
$ echo '{"x": 1}' | fstring template.txt
x is 1
$ echo '{"x": 1}' | fstring -f 'x is {x}'
x is 1
waffles32 / fstring Goto Github PK
View Code? Open in Web Editor NEWrender PEP 3101 format string using piped json object
License: MIT License