bigcartel / dugway

Easily build and test Big Cartel themes.
https://developers.bigcartel.com/api/themes
MIT License
149 stars 22 forks source link

Typo in documentation #122

Closed travisdahl closed 9 years ago

travisdahl commented 9 years ago

Not sure if this is the right place to write a defect for the docs but... right here in the docs:

last(array)

Returns the last element of an array.

{% assign my_array = 'Small|Medium|Large' | split: '|' %}
{{ my_array | first }} # => Large

that last line should be...

{{ my_array | last }} # => Large

nickendle commented 9 years ago

@travisdahl good catch, thanks! that's all fixed up now.

travisdahl commented 9 years ago

Thanks @deadformat . On that note... Have you guys considered having an index option? Im in a situation where this would be useful.

index(array)

Returns the element at given index of an array.

{% assign my_array = 'Small|Medium|Large' | split: '|' %}
{{ my_array | 2 }} # => Large

This would be most useful