Compatibility
Being compatible the Ruby version is one of our priorities. Liquid language is originally implemented in Ruby and used by Shopify, Jekyll and thus Github Pages, as you can see it’s one of the most popular template engines in Ruby. There’re lots of people using LiquidJS to serve their templates originally written for Shopify themes and Jekyll sites.
-So “being compatible” means serve developers from Shopify and Jekyll well:
+Compatibility
Being compatible with the Ruby version is one of our priorities. Liquid language is originally implemented in Ruby and used by Shopify and Jekyll (and thus Github Pages). As you can see it’s one of the most popular template engines in Ruby. There’re lots of people using LiquidJS to serve their templates originally written for Shopify themes and Jekyll sites.
+So “being compatible” means serving developers from Shopify and Jekyll well:
- Well-formed Liquid template should work just fine in LiquidJS. For example,
forloop.indexshould be 1-indexed,nilshould be rendered as empty string rather thanundefined, etc. Although some features (e.g. #236) are not feasible in JavaScript, at least we’re trying to implement all the semantics of Liquid language. - All filters and tags in shopify/liquid are supposed to be built in LiquidJS. But not those business-logic specific tags/filters typically defined by Shopify platform. Those features should be maintained as plugins. For filters/tags that are not business-logic specific, like
{% layout %}, and extremely useful, feel free to file an issue.
@@ -121,7 +121,7 @@