croxton / Stash

Stash allows you to stash text and snippets of code for reuse throughout your templates.
GNU General Public License v3.0
198 stars 20 forks source link

Offset doesn't affect list_count #135

Closed ghost closed 9 years ago

ghost commented 9 years ago

I'm not sure whether this is a bug or intended behaviour, but pretty much what the title says. I'd like to get the remaining total after the offset, but it doesn't seem to be affecting the results.

croxton commented 9 years ago

That's the correct behaviour for offset. What you're looking for is the 'slice' parameter.

ghost commented 9 years ago

Thanks Mark, although I can't see Slice anywhere in the wiki?

ghost commented 9 years ago

Mark has updated the documentation and slice seems to work for me so closing. Cheers!