Version 2.3.0
Fixes
-
Fixed an issue with excessively large integer values given to
offsetin{% for %}and{% tablerow %}tags. Previously we would get aValueErrorin somme cases. Now we clampoffsetto the length of the target iterable. See #209. -
Fixed an issue with excessively large range literals (
(1..10)). We now limit the minimum and maximum values allowed in range literal expressions to between-1024and1024. -
Fixed an issue with
FileSystemLoaderwhere it would raise anOSErrorif given a very long file name when testing a path for existence.
Features
-
Added the
block_nesting_limitclass variable toliquid.Environmentfor handling excessive markup block nesting in Liquid templates. Previously we would get aRecursionErrorat render time if Python's recursion limit was reached. Now we raise aBlockNestingError(a subclass ofResourceLimitError) at parse time ifblock_nesting_limitis reached.The default
block_nesting_limitis30. That's a maximum depth of 30 blocks per template source string or file.See #208.