[mod] readme

This commit is contained in:
fenris 2025-09-22 21:01:17 +02:00
parent 25735bbdc7
commit b422935175

View file

@ -1,5 +1,6 @@
# coin # coin
## Description ## Description
`coin` transforms a template string to its refined version by substituting its placeholders with concrete values; hence it can be used as a very basic template engine. `coin` transforms a template string to its refined version by substituting its placeholders with concrete values; hence it can be used as a very basic template engine.
@ -59,7 +60,7 @@ echo '{{flowers}} are {{color}}' | coin -a 'flowers:roses' | coin -a 'color:red'
# roses are red # roses are red
``` ```
In some contextes curly brackets might might be reserved or not available for other reasons. This can be mitigated by using different placeholder indicators: In some contextes curly brackets might be reserved or not available for other reasons. This can be mitigated by using different placeholder indicators:
```sh ```sh
echo '<<flowers>> are <<color>>' | coin -o '<<' -c '>>' -a 'flowers:roses' -a 'color:red' echo '<<flowers>> are <<color>>' | coin -o '<<' -c '>>' -a 'flowers:roses' -a 'color:red'