Jinja mistakes

sander

sander

When writing ninja files, sometimes you want to make sure a value is parsed in a specific way. Below are ways to do that

For Capitalize

{{ 'helLo WOrlD'|capfirst }}

For UPPER CASE

{{ 'helLo WOrlD'|upper }}

For lower case

{{ 'helLo WOrlD'|lower }}

For title

{{ 'helLo WOrlD'|title }}

For ljust

{{ 'helLo WOrlD'|ljust }}

For rjust

{{ 'helLo WOrlD'|rjust }}

For wrap

{{ 'helLo WOrlD'|wrap }}

Comments are disabled.