posty.util module

Various utility functions

posty.util.bucket(_list, size)[source]

Bucket the list _list into chunks of up to size size

Example: bucket([1,2,3,4,5], 2) -> [[1,2], [3,4], [5]]

posty.util.slugify(text)[source]

Returns a slugified version of the given text

posty.util.slugify_posty1(text)[source]

Returns a Posty 1.x compatible slugified version of text