Skip to content

Release 1.1.0

Compare
Choose a tag to compare
@flexferrum flexferrum released this 13 Jan 18:24

Version 1.1.0

Changes and improvements

  • batch filter added (#150)
  • slice filter added (#141)
  • format filter added (#145)
  • tojson filter added (#142)
  • striptags filter added (#177)
  • center filter added (#179)
  • xmlattr filter added (#143)
  • raw/endraw tags added (#148)
  • repeat string operator added (e. g. 'a' * 5 will produce 'aaaaa') (#162)
  • support for templates metadata (meta/endmeta tags) added (#107)
  • -fPIC flag added to Linux build configuration
  • JINJA2CPP_BUILD_SHARED flag added in order to build shared version of Jinja2C++ library

Fixed bugs

  • Fix behavior of lstripblock/trimblocks global settings. Now it fully corresponds to the origina jinja2 (#159)
  • Fix bug with rendering parent block content if child doesn't override this block (#161)
  • Fix compilation issues with user-defined callables with number of arguments more than 2 (#163)
  • Fix access to global Jinja2 functions from included/extended templates (#166)
  • Fix point of evaluation of macro params
  • Fix looping over the strings (#180)
  • Cleanup warnings

Breaking changes

  • From now with C++17 standard enabled Jinja2C++ uses standard versions of types variant, string_view and optional