...

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

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

     1{{ ['foo', 'bar', 'foobar', 'FooBar', 'foobar', 'FooBar']|unique }}
     2{{ ['foo', 'bar', 'foobar', 'FooBar', 'foobar', 'FooBar']|unique(true) }}
     3{{ [1, 2, 3, 3, 2, 1]|unique }}
     4{{ [1, 2, 3, 3, 2, 1]|unique(true) }}
     5{{ [{'value': 1}, {'value': 2}, {'value': 3}, {'value': 3}, {'value': 2}, {'value': 1}]|unique(attribute='value') }}

View as plain text