...

Text file src/github.com/noirbizarre/gonja/testData/filters/truncate.tpl

Documentation: github.com/noirbizarre/gonja/testData/filters

     1{{ "foo bar baz qux"|truncate(100) }}
     2{{ "foo bar baz qux"|truncate(9) }}
     3{{ "foo bar baz qux"|truncate(9, leeway=5) }}
     4{{ "foo bar baz qux"|truncate(9, True) }}
     5{{ "foo bar baz qux"|truncate(9, True, '…') }}
     6{{ "foo bar baz qux"|truncate(15) }}
     7{{ "foo bar baz qux"|truncate(11, leeway=5) }}
     8{{ "foo bar baz qux"|truncate(11, False) }}

View as plain text