Skip to content

SMART-TPL 1.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@RafalGoslawski RafalGoslawski released this 15 Mar 12:01
· 96 commits to master since this release
  • added support for the operator =~ that can be used to match regular expression, this new operator only works for new version templates
  • the strcmp function that is internally used to compare strings has been fixed because it did not order strings alphabetically (short strings were always smaller than long string, instead of comparing them lexicographically, only strings of the same size were checked lexicographically)
  • bugfix: variable modifier were not working if they were user in string comparisons (for example: {if $name|lower == "emiel"}). This has been fixed
  • fixed issue introduced by previous commits, outputting variables with a modifier was no longer working
  • the expression parser is much more relaxed than it used to be, it now is permitted to use expression in many more places. This fixes the issue that boolean operators could not be grouped using parenthesis, and it also opens up many other use cases for expressions that were not yet supported (but it might cause compatibility issues if old templates were relying on "odd" behavior of the old operator preference rules. Also fixed the boolean expressions were not outputted (like "{$a and $b}")