- Only clear environment-wide template cache if the cache is not
None
. Python Liquid version 1.9.0 changedliquid.Environment.cache
to be anOptional[Mapping]
. - Handle depreciation of
flask.signals_available
. - Require Flask version 2.
- We now use
flask.globals.request_ctx
instead offlask._request_ctx_stack
when it is available._request_ctx_stack
is depreciated since Flask version 2.2.0 and will be removed in 2.3.0.
First stable release.
- Fixed typing issues. MyPy in strict mode.
- Added
cache_size
,expression_cache_size
,template_comments
,comment_start_string
andcomment_end_string
arguments toLiquid
. All of these arguments get passed through toliquid.Environment
.
- Added
render_template_async
andrender_template_string_async
functions for rendering templates asynchronously.
- Added the
autoescape
argument toLiquid
. IfTrue
(default), context variables will be HTML escaped before output. - Added the
auto_reload
argument toLiquid
. Ifauto_reload
isFalse
, automatic reloading of templates is disabled. For deployments where template sources don't change between service reloads, setting auto_reload toFalse
can yield an increase in performance by avoiding calls touptodate
. Defaults toTrue
.