Version 2.2.2
Fixes
- Fixed a bug in the built-in
FileSystemLoaderwhere aValueErrorwould be raised at render time if the target file name is empty or, in some cases, contains only path punctuation and the loader is configured with a default file extension. Now aTemplateNotFoundErroris raised instead. See #203. - Fixed an issue with the built-in
FileSystemLoaderwhere aValueErrorwould be raised at render time if the configured default file extension is not a valid suffix. Now we raise aValueErroratFileSystemLoaderconstruction time if theextargument is not a valid suffix. - Fixed a bug with the
{% cycle %}tag. Previously, if given a cycle group name without any other arguments, aZeroDivisionErrorexception would be raised at render time. Now we raise aLiquidSyntaxError(we don't have aTagArgumentError) at parse time. See #202. - Fixed a bug where we'd get an
AssertionErrorat render time when resolving variables using bracket syntax for the root segment and that segment evaluates to a non-string value. Now such uses of bracketed path syntax will be resolved to the configuredUndefinedtype. See #206.