...

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

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

     1{{ simple.multiple_item_list|slice(":99")|join(",") }}
     2{{ simple.multiple_item_list|slice("99:")|join(",") }}
     3{{ simple.multiple_item_list|slice(":3")|join(",") }}
     4{{ simple.multiple_item_list|slice("3:5")|join(",") }}
     5{{ simple.multiple_item_list|slice("2:")|join(",") }}
     6{{ simple.multiple_item_list|slice("2:3")|join(",") }}
     7{{ simple.multiple_item_list|slice("2:1")|join(",") }}
     8{{ "Test"|slice("1:3") }}
     9{{ simple.chinese_hello_world|slice("1:3") }}

View as plain text