1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
| {{ 'hello, world!' | capitalize }} {{ 'hello, world!' | remove: 'world'}} {{ 'hello, world!' | remove_first: 'world'}} {{ product.title | replace: 'Awesome', 'Mega' }} {{ product.title | replace_first: 'Awesome', 'Mega' }} {{ "hello" | slice: 1, 3 }} {{ ' too many spaces ' | strip }} {{ "The cat came back the very next day" | truncate: 13 }} {{ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | truncate: 18, ", and so on" }} {{ "The cat came back the very next day" | truncatewords: 4 }} {% assign strs = 'hello, world!' | split: ',' %} {{ 'sales' | append: '.jpg' }} {{ 'sale' | prepend: 'Made a great ' }} {{ 'coming-soon' | camelcase }} {{ 'UPPERCASE' | downcase }} {{ 'i want this to be uppercase' | upcase }} {{ "<p>test</p>" | escape }} {{ '100% M & Ms!!!' | handleize }} {{ 'abc' | md5 }} {{ var | newline_to_br }} {{ cart.item_count | pluralize: 'item', 'items' }} var content = {{ pages.page-handle.content | json }}; {{ "test" | split: "" | reverse | join: "" }}
{{ product.tags[2] }} {{ product.tags | join: ', '}} {{ proeuct.tags | first }} {{ proeuct.tags | last }} {% assign all = arr1 | contact: arr2 %} {{ my_array | reverse }} {{ my_array | size }} {% assign products = collection.products | sort: 'price' %} {% assign kitchen_products = collection.products | where: 'type', 'kitchen' %} {{ my_array | split: ' ' | uniq }} {{ my_array | map: 'title'}}
{% assign count = count | plus: 1 %}
{{ 'smirking_gnome.gif' | asset_url | img_tag: 'Smirking Gnome', 'cssclass1 cssclass2' }} <img src="//cdn.shopify.com/s/files/1/0147/8382/t/15/assets/smirking_gnome.gif?v=1384022871" alt="Smirking Gnome" class="cssclass1 cssclass2" />
{{ 'shop.js' | asset_url | script_tag }} {{ 'shop.css' | asset_url | stylesheet_tag }}
{{ 'Shopify' | link_to: 'https://www.shopify.com','A link to Shopify' }} {{ "Shopify" | link_to_vendor }} {{ "jeans" | link_to_type }} {{ tag | link_to_tag: tag }} {{ tag | link_to_add_tag: tag }} {{ tag | link_to_remove_tag: tag }} <img src="{{ type | payment_type_img_url }}" /> {{ 'option_selection.' | shopify_asset_url | script_tag }} {{ collection.url | sort_by: 'best-selling' }} {{ "T-shirt" | url_for_type }} {{ "Shopify" | url_for_vendor }} <a href="{{ product.url | within: collection }}">{{ product.title }}</a>
{{ article.published_at | time_tag }} {{ article.published_at | time_tag: format: 'date' }} {{ article.published_at | time_tag: '%a, %b %d, %Y', datetime: '%Y-%m-%d' }} {{ 'now' | date: "%Y %b %d" }} {{ 'now' | date: "%Y" }} Dear {{ customer.name | default: "customer" }} {{ form.errors | default_errors }}
{% paginate collection.products by 12 %} {%for product in collection.products %} {% render 'product', proudct: product%} {% endfor %} {% endpaginate %} {% if paginate.pages > 1%} {% if paginate.previous.is_link %} <a href="{{ paginate.previous.url }}">prev</a> {% endif %} {% for part in paginate.parts %} <a href="{{ part.url }}" {% if forloop.index == paginate.current_page %}class="active"{% endif %}>{{ part.title }}</a> {% if forloop.first == true %}{% endif %} {% if forloop.last == true %}{% endif %} {{ forloop.length }} {% endfor %} {% if paginate.next.is_link %} <a href="{{ paginate.next.url }}">next</a> {% endif %} {% endif %}
{{ tag | highlight_active | link_to_tag: tag }} <span>{{ 'products.product.sold_out' | t }}</span> // 翻译 {{ product.variants.first.weight | weight_with_unit }} {{ 'collection-1' | placeholder_svg_tag }}
|