title: Ruby Liquid templating nested hashes
body: <p>I have a nested hash:</p>
  
  <pre><code>{
    :KeyA =&gt; {
              :KeyB =&gt; "hello",
              :KeyC =&gt; {
                        :KeyD =&gt; "foo",
                        :KeyE =&gt; "bar"
                      }
            }
  }
  </code></pre>
  
  <p>if I pass this to ERB I can do:</p>
  
  <pre><code>&lt;%= config[:KeyA][:KeyC][:KeyD] %&gt;
  </code></pre>
  
  <p>and get:</p>
  
  <pre><code>foo
  </code></pre>
  
  <p>However this doesnt work with Liquid :(</p>
  
  <p>If I do:</p>
  
  <pre><code>Liquid::Template.parse(template).render(Hash["config" =&gt; myhash ])
  </code></pre>
  
  <p>I can do:</p>
  
  <pre><code>{{ config }}
  </code></pre>
  
  <p>and I get the pseudojson from above printed out, but</p>
  
  <pre><code>{{ config[:KeyA] }}
  </code></pre>
  
  <p>results in nothing :(</p>
  
  <p>Does Liquid support this? If not what alternatives are there to ERB that do support this, and preferably allow me to customise the replacement tags (I cant use ERB because im running it on an ASP file which contains <code>&lt;%</code> markup)</p>