[formatter] add 'g' conversion to sluGify a string (#2410)

This commit is contained in:
Mike Fährmann
2022-08-23 21:14:55 +02:00
parent e4cff67aaa
commit 67bad04dda
5 changed files with 36 additions and 1 deletions

View File

@@ -63,6 +63,12 @@ Conversion specifiers allow to *convert* the value to a different form or type.
<td><code>{foo!C}</code></td>
<td><code>Foo Bar</code></td>
</tr>
<tr>
<td align="center"><code>g</code></td>
<td>Slugify a value</td>
<td><code>{foo!g}</code></td>
<td><code>foo-bar</code></td>
</tr>
<tr>
<td align="center"><code>j</code></td>
<td>Serialize value to a JSON formatted string</td>