Creating a custom block tag in liquid
问题 I'm trying to make a custom tag {% render-slider, ['image1.jpg', 'image2.jpg',...] %} that renders in to the following html code. <div class="slider"> <a href="#" class="unslider-arrow prev icon-chevron-with-circle-left"></a> <a href="#" class="unslider-arrow next icon-chevron-with-circle-right"></a> <ul> <% images.each do |image| %> <li style="background-image: url(<%= asset_path image %>);"> <% end %> </li> </ul> </div> This will feature be used on a blog website, so that users can use this