liquid
liquid copied to clipboard
Liquid markup language. Safe, customer facing template language for flexible web apps.
When using the `404` template, the `request` object does not contain the URL shown in the browser's address bar. Instead, it refers to `/404`. Therefore, it's impossible to use `request.path`,...
With `ruby 3.3.0dev (2023-11-25 master f6b292b5ca) [x86_64-linux]` : https://github.com/ruby/ruby/commit/fb7add495454322ea00efa7549feb957cb1ca538 , test suite for liquid git: https://github.com/Shopify/liquid/commit/e3dcc75ab533eb177cabf3df16ed27c1a21fc33c fails like ``` $ ruby -I"lib:test" -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' Run options: --seed 59170...
## [What](https://jekyllrb.com/docs/liquid/filters/#where-expression) https://github.com/jekyll/jekyll/blob/3f3a283018a976da11a0bfcc13a20d43d37ee29f/lib/jekyll/filters.rb#L209-L221 ## Why My use case at this moment is filtering tags containing a substring but I believe `where_exp` would be more generally useful than `where_contains`, `where_not_contains`, etc.
https://github.com/Shopify/liquid/releases/tag/v4.0.4 exists https://rubygems.org/gems/liquid/versions/4.0.4 exists Default branch latest changelog entry 4.0.3: https://github.com/Shopify/liquid/blob/main/History.md#403--2019-03-12 I think I might've found the missing one, but it says unreleased and therefore the list might be incomplete:...
Since the image objects automatically outputs the handle by default, it's impossible to use the where filter on it. ```liquid {%- assign image = product.images | where: 'id', 123 -%}...
My products have color customization properties. The properties are stored in a product metafield as a json: ``` [ { "name": "Branches & Birds Colour", "required": true, "type": "color", "colors":...
# Problem If you call `render` (or `render!`) with `strict_variables` or `strict_filters` set to true, when you render a partial using the `render` tag those directives are ignored. It seems...
When a large Range is given in a for-loop (e.g. 1..100000000000000), it may crash the Ruby process or at least eats a lot of memory and takes a significant amount...
### Summary: When trying to sort a Metaobject that contains several metafields, including **`order_index`** of type **`number_integer`**, the Liquid engine throws an error that says **`cannot sort values of incompatible...