Changelog History
-
v4.0.1
November 27, 2020 -
v4.0.0 Changes
September 13, 2020๐ 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
-
v3.0 Changes
October 28, 2014๐ See this blog post for more about the pongo2 v3 release:
-
v2.1 Changes
October 28, 2014๐ See more in this blog post:
-
v1.0 Changes
August 08, 2014I'm happy to announce pongo2 v1.0 , the first stable release.
๐ฆ pongo2 aims to be compatible with Django 1.7 with regards to syntax, filters and tags. In combination with my official package
pongo2-addons
pongo2 offers even more filters/tags including humanization and markup features.๐ All version 1.x releases will remain backwards compatible (only API improvements are possible, but no changes to any existing API functions/symbols). You can use the special import path
gopkg.in/flosch/pongo2.v1
๐ to stick with version 1.x releases in your projects.
List of TODOs which could effect users of version 1.0:
- ๐ท tag
verbatim
does not take a parameter yet - ๐
block.super
not supported yet Value.Iterate()
over strings is not utf-8 compatible yet (probably rarely used by users)
Please also have a look on the caveats and on the development status hints when using pongo2.
๐ pongo2 got a playground; feel free to play with it and to try pongo2 out.
๐ I'm always glad about any feedback. I hope you enjoy this release!
- ๐ท tag
-
v1.0-rc1 Changes
July 29, 2014๐ I just finished the first release candidate for the first stable pongo2 version (1.0).