Permalink
Browse files

Liquid template language support (#260)

* Add liquid and liquid test file

* Fix test file
  • Loading branch information...
t-richards authored and Aaronepower committed Sep 7, 2018
1 parent 321ed22 commit b55687462b8e2ed8eef3c32752bf719c05ed6e99
Showing with 39 additions and 1 deletion.
  1. +15 −1 languages.json
  2. +24 −0 tests/data/liquid.liquid
View
@@ -881,6 +881,20 @@
["'", "'"]
]
},
"Liquid": {
"name":"Liquid",
"base":"html",
"quotes":[
["\\\"", "\\\""],
["'", "'"]
],
"extensions":[
"liquid"
],
"multi_line":[
["{% comment %}", "{% endcomment %}"]
]
},
"LinkerScript":{
"name":"LD Script",
"base":"c",
@@ -1471,7 +1485,7 @@
"extensions":[
"frm",
"bas",
"cls"
"cls"
]
},
"VBScript":{
View
@@ -0,0 +1,24 @@
{% comment %} 24 lines 19 code 1 comments 4 blanks {% endcomment %}
{% paginate collection.products by 20 %}
<ul id="product-collection">
{% for product in collection.products %}
<li class="singleproduct clearfix">
<div class="small">
<div class="prodimage"><a href="{{product.url}}"><img src="{{ product.featured_image | product_img_url: 'small' }}" /></a></div>
</div>
<div class="description">
<h3><a href="{{product.url}}">{{product.title}}</a></h3>
<p>{{ product.description | strip_html | truncatewords: 35 }}</p>
<p class="money">{{ product.price_min | money }}{% if product.price_varies %} - {{ product.price_max | money }}{% endif %}</p>
</div>
</li>
{% endfor %}
</ul>
<div id="pagination">
{{ paginate | default_pagination }}
</div>
{% endpaginate %}

0 comments on commit b556874

Please sign in to comment.