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).