Remove inline snippet specific example files

This commit is contained in:
Julia Boutin
2025-10-27 10:11:22 -06:00
parent ba5aa0abf6
commit b5ecd4d0f8
4 changed files with 3 additions and 178 deletions
+3 -41
View File
@@ -1,43 +1,5 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inline Snippets</title>
<p>Hello world!</p>
<body>
<div class="liquid" style="font-size: 56px;">
<p>It is {{ date }}</p>
{% assign foo = true %}
{% assign linktext = "variable" %}
{% snippet main %}
{% assign foo = false %}
<p>Hi {{ arg | upcase }}!!!</p>
<p>This is an inline snippet</p>
<ul>
<li><a href="/wow-a-link">wow a {{ linktext }}</a></li>
<li>1 + 1 = {{ 1 | plus: 1 }}</li>
<li>{% if true %}Yes!{% endif %}</li>
<li>foo = {% if foo %}true{%else%}false{% endif %}</li>
<li>{{ missing_var | default: 'fallback' }}</li>
</ul>
{% endsnippet %}
{% render main, arg: 'lsf', ... %}
{{ foo }}
{% snippet listitem %}
<li>{{ forloop.index }}: {{ emoji }}</li>
{% endsnippet %}
{% assign emojis = "🌼,🌳,🌸" | split: "," %}
<ul style="list-style-type: none; display: flex; gap: 1em;">
{%- render listitem for emojis as emoji -%}
</ul>
</div>
</body>
</html>
<p>Check out the <a href="/products">Products</a> screen</p>