@sanmai sanmai released this Mar 22, 2018 · 5 commits to master since this release

Assets 2
  • Now we return null for missing properties, like we do for missing keys for arrays. (#101)

@sanmai sanmai released this Feb 9, 2018 · 7 commits to master since this release

Assets 2
  • Paginate tag shall now respect request parameters.
  • It is now possible to set a custom query param for the paginate tag.
  • Page number will now never go overboard.

Major thanks to @edwardoka and @asacarter.

@sanmai sanmai released this Feb 7, 2018 · 17 commits to master since this release

Assets 2
  • TagPaginate shall not pollute the global scope, but work in own scope. (Thanks @edwardoka and @asacarter)
  • TagPaginate errors if no collection present instead of vague warning.

@sanmai sanmai released this Dec 12, 2017 · 26 commits to master since this release

Assets 2

Now a capture tag will save a variable in the global context. (Fixes #90)

@sanmai sanmai released this Nov 3, 2017 · 30 commits to master since this release

Assets 2
  • TagUnless is an inverted TagIf: simplified implementation
  • Allow dashes in filenames (thanks @j-angnoe)

@sanmai sanmai released this Oct 10, 2017 · 36 commits to master since this release

Assets 2
  • escape and escape_once filters now escape everything, but arrays
  • New standard filter for explicit string conversion, mainly useful for object with __toString method in conjunction with filters

@sanmai sanmai released this Oct 9, 2017 · 43 commits to master since this release

Assets 2
  • Better caching for non-extending templates
  • Simplified 'assign' tag to use rules for variables (thanks @jfoucher)
  • Now supporting PHP 7.2
  • Different types of exception depending on the case (thanks @jfoucher)
  • Filterbank will not call instance methods statically
  • Callback-type filters

@sanmai sanmai released this Sep 28, 2017 · 81 commits to master since this release

Assets 2
  • Unquoted template names in include tag, as in Jekyll (thanks @jfoucher)
  • Caching now works correctly with extends tag

@sanmai sanmai released this Sep 25, 2017 · 125 commits to master since this release

Assets 2
  • Dropped support for EOL'ed versions of PHP (< 5.6)
  • Arrays won't be silently cast to string as 'Array' anymore
  • Complex objects could now be passed between templates and to filters
  • Additional test coverage added

@sanmai sanmai released this Sep 23, 2017 · 150 commits to master since this release

Assets 2
  • Support for numeric and variable array indicies
  • Support loop break and continue
  • Allow looping over extended ranges
  • Math filters now work with floats
  • Fixed 'default' filter
  • Local cache with data stored in a private variable
  • Virtual file system to get inversion of control and DI
  • Lots of tests with the coverage upped to 97%
  • Small bug fixes and various enhancements

Many thanks to @schmoove, @NathanBaulch, @Eun, and all other reporters and contributors.

Version 1.3 will be the last minor version tested under PHP 5.3 not only because this version is not readily supported on Travis, but because it reached EOL quite a long time ago in 2014. At least we can be sure there are no obvious bugs in this version.