liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Update docs

Open david542542 opened this issue 11 months ago • 1 comments

Can the type section be updated with all the types that are supported? At the very least it seems to be missing object and timestamp:

https://shopify.github.io/liquid/basics/types/

Image

Object is obviously supported:

{% if user %}
  Hello {{ user.name }}!
{% endif %}

As is timestamp/date:

{{ article.published_at | date: "%a, %b %d, %y" }}

Source: https://shopify.github.io/liquid/filters/date/

david542542 avatar Jan 08 '25 00:01 david542542

The documentation has been updated to include the missing Object and Timestamp types. Detailed examples have been added to demonstrate their usage:

Object: Includes an example of accessing object attributes with a conditional statement.
Timestamp: Includes an example of formatting date and time values using the date filter.

This update ensures that all supported Liquid types are now documented comprehensively. Thank you

Success1308 avatar Jan 20 '25 22:01 Success1308