Liquid vs XML Basics
When comparing Liquid vs XML Basics, the Slant community recommends Liquid for most people. In the question“What are the best resources to learn XML?” Liquid is ranked 2nd while XML Basics is ranked 3rd. The most important reason people chose Liquid is:
Liquid allows developers to create a clear distinction between the presentation and application layer.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Clear distinction between presentation and application
Liquid allows developers to create a clear distinction between the presentation and application layer.
Pro Secure
Liquid templates are secure out of the box. They can be used for applications where users can edit the appearance without allowing them to run any server-side code. Liquid does just that without any needed configuration.
Cons
Con Boolean algebra has some issues
Liquid has some known issues with boolean algebra when it comes to some advanced expressions.
Liquid::Template.parse("{% if false and false or true %} foo {% endif %}").render
# => ""
false and false or true
# => true
It seems that Liquid simply parses from left to right, and if it finds a false and X
it immediately returns false.