pongo2 v4.0.1 Release Notes
Release Date: 2020-11-27 // almost 4 years ago-
No data yet ๐
You can check the official repo
Previous changes from v4.0.0
-
๐ Changes in this long awaited release:
Library
- First semver version with Go modules compatibility
- ๐ Several bug fixes
- ๐ Improved error handling
- ๐จ Several refactorings to speed up execution and reduce allocations, including support for
io.Writer
inExecute()
functions and short-circuit evaluations in expressions - โ Add
TemplateSet.FromBytes
- โ Add
RenderTemplateBytes
- โ Add
Template.ExecuteWriterUnbuffered
- โ Add
TemplateLoader
interface and according functions for virtual filesystem support (incl. support for multiple loaders) - โ Add
pongo2.SetAutoescape
for a global behavior change - โ Add whitespace control for tags and blocks, supporting
{%-
and-%}
for tags andpongo2.Options
for blocks - โ Add
pongo2.CleanCache
to remove files from the template cache - โ Add support for template functions that return an error as the second return value
- โ Add
Template.ExecuteBlocks
to render supplied list of blocks only
๐ See v3.0...v4.0.0 for a full list of changes.
Thanks to all contributors!Template Language
- โ Add support for single quotes in variables, functions and tags
- โ Add support for
if_exists
-flag ininclude
-tag - โ Add support for
sorted
-flag infor
-tag with support for maps and arrays/slices - โ Add
block.Super
support - โ Add
split
filter