CASE 1 - Capture + Render
I want to find out if I can use capture and render together inside liquid tag. For example:
{%- liquid
capture imagefromshema
render 'get_swatch_textures', item: item
endcapture
-%}
CASE 2 - Liquid Tag + HTML
I want to find out if I can use liquid tag and echo html tag inside it like below. For example:
{% liquid
for str in blogs_name
assign word = str | strip | downcase
unless blog.handle == word
if blogs[word] != blank
echo - {{ blogs[word].title }} ({{ blogs[word].articles_count }})
endif
endunless
endfor
%}
CASE 3 - Liquid Tag + Capture + Render + HTML
I want to find out if I can use capture, render and echo html tag inside a liquid tag like below. For example:
{%- liquid
for i in (1..10)
assign group_data = 'filtergroup' | append: i
assign group_key = 'show_' | append: group_data
assign group_title = 'title_' | append: group_data
assign tag_lang = ',' | append: settings[group_data] | strip_newlines
capture value
render 'get_current_sidebar_filters', key_access: group_key, key_data: group_data
endcapture
if value != ''
assign value = value | replace: 'amp;', '' | split: ','
for d in value
assign count = count | plus: 1
if forloop.first
echo - {{ settings[group_title] }}:
endif
-%}
CASE 4 - Liquid Tag + Script
I want to find out if I can use echo to print a script inside a liquid tag like below. For example:
{% liquid
if settings != '-' and isAdmin == false
echo
endif
%}