php-liquid
php-liquid copied to clipboard
A PHP port of Ruby's Liquid Templates
I have identified three main bottlenecks when profiling the code with xdebug: 1. `array_shift()`: The array of tokens ended up being renumbered on each iteration. So we instead set consumed...
Fix #179 Resubmit #180
I had the following if statement: ``` liquid {% if (model.Friends.size == nil or model.Friends.size LAMP stack If I'm just missing something, let me know, but removing the `nil` checks...
Message: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated Filename: Liquid/StandardFilters.php Line Number: 180
Hello. I'm using this package for 1 year and just refering the docs in base repo [harrydeluxe/php-liquid](https://github.com/harrydeluxe/php-liquid) which is unmaintained repo. then this repo take over the package and more...
If you try to render a multi-level array it will throw an Array to string conversion exception. ```php [ 'example' => ['name' => 'test', 'address' => []] ]; ``` ```...
Hi! I have an issue what I cant seem to solve. I have a for loop and I want to echo something every 4th iteration of the for loop. Normaly...
If i the following scenario, which is used often in the project i work with. ` $template = new Template; $template->parse("Hello, {{ name.1 }}!") $template->render(array('name.1'=> 'Kennet')) ` it will output...
It seems there are tags not supported such as `section`, `form`, `layout`, etc. Whenever I use them, I'll get 'Unknow Tag'. How to add support to these tags?
The template below produces different results in this PHP implementation and in Shopify's Ruby implementation. Since this is a port of the Ruby implementation, I believe it should either have...