carolineschnapp / shipping-calculator

To use in Shopify to add a shipping rates calculator to the cart page. Requires jQuery.
http://wiki.shopify.com/Adding_a_Shipping_Rates_Calculator_to_your_Cart_Page
61 stars 42 forks source link

Question re: syntax #16

Closed adamwooding closed 7 years ago

adamwooding commented 7 years ago

Hi @carolineschnapp ,

I hope you don't mind me asking this question. I noticed that in the shipping-calculator.liquid file, you have used these opening and closing tags <% %>. I can't seem to find any reference to the use of those tags. Can you please let me know what they do?

Thank you so much, Adam Wooding

illarionvk commented 7 years ago

<% %> tag syntax is a part of Underscore.js/Lodash templates.

Shipping calculator uses the Underscore.js template to render itself on the page.

adamwooding commented 7 years ago

Hi @illarionvk

Thank you very much for your reply :)