pongo2 v4.0.1 Release Notes

Release Date: 2020-11-27 // over 3 years ago

Previous changes from v4.0.0

  • ๐Ÿš€ Changes in this long awaited release:


    • 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.Writerin Execute() 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 and pongo2.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 in include-tag
    • โž• Add support for sorted-flag in for-tag with support for maps and arrays/slices
    • โž• Add block.Super support
    • โž• Add split filter