Port of the Liquid templating engine to PHP 5.3+