tag: add a ‘%’ formatter

Range tags can now be rendered as a percentage value, by using a ‘%’
formatter:

  {tag_name:%}
This commit is contained in:
Daniel Eklöf 2021-08-27 21:02:01 +02:00
parent 0da24198b3
commit e201cc3d30
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 73 additions and 7 deletions

View file

@ -33,6 +33,7 @@
* network: `ssid`, `signal`, `rx-bitrate` and `rx-bitrate` tags.
* network: `poll-interval` option (for the new `signal` and
`*-bitrate` tags).
* tags: percentage formatter, for range tags: `{tag_name:%}`.
### Changed