- Fix missing expressions from
FilteredIfExpression.children()
. See #4.
- Add support for static analysis of templates that make use of extra tags.
Version bump. First stable release.
- Added a
with
tag. A tag that extends the local namespace for the duration of its block. - Removed depreciated
env
argument to theJSON
andTranslate
filters.
- Removed depreciated class-based filters.
- The "if not" tag now plays nicely with range literals.
- Added drop-in replacements for standard output statements and
echo
andassign
tags that support inlineif
/else
expressions.
- Added
macro
andcall
tags. Define a macro (a bit likecapture
but with arguments) and run it withcall
(a bit likerender
but without hitting a template loader).
- Fixed a bug where
if not foo contains 'bar'
would raise aLiquidTypeError
. It is now equivalent toif not (foo contains 'bar')
.
- Depreciated filters that inherit from
liquid.filter.Filter
. That'sStylesheetTag
,ScriptTag
andIndex
. Use the function-based implementations instead (stylesheet_tag
,script_tag
andindex
). - Depreciated the
env
argument tofilters.JSON
andfilters.Translate
.
- HTML filters are now marked as "safe" when
autoescape
is on. - The
href
andsrc
attributes ofstylesheet_tag
andscript_tag
are now HTML escaped, even ifautoescape
is off.