New Liquid features

Posted by tobi — 12:06 PM Feb 10

For shopify I’m currently working more and more with liquid since we are finishing up Vision, our tool for shopify theme designers.

With liquid increasingly becoming something real I’m adding more and more features to it based on feedback and on actual needs which become clear during development.

Here are some recent additions:

for syntax now supports sql like limit and offset syntax


{% for product in products limit:3 offset:3 %}
   <a href="{{product.url}}">{{product.title}}</a>
{% endfor %}
for html tables you can use the similar tablerow helper which takes an optional cols parameter:

<table>
{% tablerow product in products cols:3  %}
   <a href="{{product.url}}">{{product.title}}</a>
{% endtablerow %}
</table>
I also added new filters to the standard library. Amongst others you can now find
  • truncate
  • truncatewords
  • date
  • upcase
  • downcase

Let me know of any other ones you would like to see by default

Comments

  • Brandon 12 Feb 01:36

    The UI for Shopify is looking awesome. Any word on when it will officially launch?

  • Jerome 20 Feb 02:53

    - Liquify will be part of RAILS 1.1 ?

    - I know there is a screencast to explain how to install liquify. But, have you plan to make a tutorial for explain the basics of liquify ? How start working with ?

Commenting are now closed…