| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2020-09-13 | 1.5 kB | |
| v4.0.0.tar.gz | 2020-09-13 | 66.9 kB | |
| v4.0.0.zip | 2020-09-13 | 115.4 kB | |
| Totals: 3 Items | 183.8 kB | 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.WriterinExecute()functions and short-circuit evaluations in expressions - Add
TemplateSet.FromBytes - Add
RenderTemplateBytes - Add
Template.ExecuteWriterUnbuffered - Add
TemplateLoaderinterface and according functions for virtual filesystem support (incl. support for multiple loaders) - Add
pongo2.SetAutoescapefor a global behavior change - Add whitespace control for tags and blocks, supporting
{%-and-%}for tags andpongo2.Optionsfor blocks - Add
pongo2.CleanCacheto remove files from the template cache - Add support for template functions that return an error as the second return value
- Add
Template.ExecuteBlocksto render supplied list of blocks only
See https://github.com/flosch/pongo2/compare/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.Supersupport - Add
splitfilter