Closed WebVPF closed 9 months ago
Added Twig filters:
camel
finish
plural
singular
slug
snake
studly
trans
transchoice
md
md_safe
md_line
https://github.com/wintercms/winter/blob/bb79834af1690c63cc642af72a560e5f7e0d3c4a/modules/system/ServiceProvider.php#L212-L223
Before:
After:
{{ 'test test'|camel }} {{ 'test'|finish('/') }} {{ 'test'|plural }} {{ 'letters'|singular }} {{ 'test test'|slug }} {{ 'test test'|slug('+') }} {{ 'test test'|snake }} {{ 'test test'|studly }}
{{ 'I love Winter CMS.'|trans }} {{ ':name loves Winter CMS.'|trans({ name: 'Samuel' }) }} {{ 'snowflake|snowflakes'|transchoice(8) }}
{{ '**Text** is bold.'|md }} {{ '**Text** is bold.'|md_line }} {{ ' **Text** is bold.'|md_safe }}
Added Twig filters:
camel
finish
(params)plural
singular
slug
(or params)snake
studly
trans
(or params)transchoice
(params)md
md_safe
md_line
https://github.com/wintercms/winter/blob/bb79834af1690c63cc642af72a560e5f7e0d3c4a/modules/system/ServiceProvider.php#L212-L223
Screenshots
Before:
After:
Examples
Str
trans
Markdown