I have a nested hash:
{
:KeyA => {
:KeyB => "hello",
:KeyC => {
:KeyD => "foo",
:KeyE => "bar"
}
}
}
if I pass this to ERB I can do:
<%= config[:KeyA][:KeyC][:KeyD] %>
and get:
foo
However this doesnt work with Liquid :(
If I do:
Liquid::Template.parse(template).render(Hash["config" => myhash ])
I can do:
{{ config }}
and I get the pseudojson from above printed out, but
{{ config[:KeyA] }}
results in nothing :(
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 <%
markup)