title: How to use a variable name inside of liquid shortcode to render a section file in a template file for Shopify?
body: <p><strong>Objective:</strong></p>
  <p>I want to render a Shopify <code>section</code> inside of a <code>template</code> using a variable as the section file's name. i.e.</p>
  <p><strong>Example</strong></p>
  <p>Template: <code>templates/parent.liquid</code></p>
  <p>Section: <code>sections/child.liquid</code></p>
  <p>Attempting to render (include) <code>child.liquid</code> inside <code>parent.liquid</code> when <code>variableName = 'child'</code></p>
  <p><strong>context:</strong> <code>*child*</code> could be anything -- in my theme's specific use case, I'm assigning <code>variableName = page.handle</code>. If <code>page.handle</code> matches an existing product vendor AND  <code>sections/[page.handle].liquid</code> exists, I am includuing it in the page.</p>
  <p><strong>WHY?</strong> I want to avoid a hardcoded list of available section-files in lieu if this proposed progammatic approach of dynamic filenames derived from the current page.</p>
  <p><em>The following code would go inside <code>templates/parent.liquid</code></em></p>
  <p><strong>this works (hardcoded quoted strings):</strong></p>
  <p>BUT, I want to avoid hard-coded filenames at all costs.</p>
  <p><code>{% section 'child' %}</code></p>
  <p><strong>these all throw an error (any form of dynamic filename):</strong></p>
  <p><code>{% section variableName %}</code></p>
  <p><code>{% section {{ variableName }} %}</code></p>
  <p><code>{% section 'variableName' %}</code></p>
  <p><code>{% section &quot;'&quot; + variableName + &quot;'&quot; %}</code></p>
  <p><code>{% section variableName %}</code></p>
  <p><code>{% section &quot;{{ variableName }}&quot; %}</code></p>
  <p><code>{% section [variableName] %}</code></p>
  <p><strong><strong>edit</strong> more errors</strong></p>
  <p><code>{% render variableName %}</code> Syntax error in tag 'render' - Template name must be a quoted string</p>
  <p><code>{% include variableName %}</code> look for a snippet, not a section</p>
  <p><code>{% include sections.variableName %}</code> Liquid error: Argument error in tag 'include' - Illegal template name</p>
  <p><code>{% include sections.[variableName] %}</code> Liquid error: Argument error in tag 'include' - Illegal template name</p>
  <p><strong>Research</strong>
  The closest article I've found via Google is <a href="https://community.shopify.com/c/Shopify-Design/Dynamic-Liquid-Variable-inside-Liquid-tag/td-p/162451" rel="nofollow noreferrer">https://community.shopify.com/c/Shopify-Design/Dynamic-Liquid-Variable-inside-Liquid-tag/td-p/162451</a></p>
  <p><strong>Pseudo Answer</strong>
  I'm searching for a working solution along the lines of:</p>
  <p><code>{% include sections.[page.handle] %}</code></p>