Skip to content

Releases: kalimatas/php-liquid

More strict escape filter

10 Oct 09:20
Compare
Choose a tag to compare
  • 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

Easy filters

09 Oct 03:51
Compare
Choose a tag to compare
  • 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

Unquoted template names

28 Sep 08:34
Compare
Choose a tag to compare
  • Unquoted template names in include tag, as in Jekyll (thanks @jfoucher)
  • Caching now works correctly with extends tag

Complex objects could now be passed between templates

25 Sep 03:38
Compare
Choose a tag to compare
  • 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

97% test coverage. Yay!

23 Sep 03:43
Compare
Choose a tag to compare
  • 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.

1.3.0

17 Jul 08:04
Compare
Choose a tag to compare
  • Support Traversable loops and filters
  • Fix date filter for format with colon
  • Various minor improvements and bugs fixes

PHPUnit ~4.8

08 Feb 15:44
Compare
Choose a tag to compare
1.2.2

Require phpunit: ~4.8

1.2.1

12 Dec 08:02
Compare
Choose a tag to compare
  • Remove content injection from $_GET.
  • Add PHP 5.6, 7.0, 7.1 to Travis file.

Context-aware auto-escaping

11 Jun 12:57
Compare
Choose a tag to compare

Changelog (thanks to @sanmai):

  • Added ESCAPE_BY_DEFAULT setting for context-aware auto-escaping
  • Made Context work with plain objects
  • escape now uses htmlentities
  • Fixed escape_now

Namespaces

07 Sep 18:48
Compare
Choose a tag to compare
  • Add namespaces
  • Add composer support
  • Implement new standard filters
  • Add raw tag