<div dir="ltr">Here is what I had to do, i was pulling from elasticsearch same issue as you, after a few hours i humbled myself and went on to irc perl help channel and someone mentioned the private variables not displaying, dangit how dumb.<div><br></div>Here is my yaml config file for dancer2, the show_private_variables will allow _var's to work.<br><br>template: "template_toolkit"<br>engines:<br> template:<br> template_toolkit:<br> start_tag: '[%'<br> end_tag: '%]'<br> show_private_variables: true;</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 18, 2017 at 4:04 AM, Richard Jones <span dir="ltr"><<a href="mailto:ra.jones@dpw.clara.co.uk" target="_blank">ra.jones@dpw.clara.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
On 18/10/2017 10:42, Russell Jenkins wrote:<br>
<blockquote type="cite">
<p>On 18/10/17 8:13 pm, Richard Jones wrote:<br>
</p>
<blockquote type="cite">
<p>I've been caught by that before. Try <font face="monospace,
monospace">[% entries.$id.item('_id') %]. For some reason
(would interested to learn what), TT doesn't seem to be able
to cope with leading underscores in data structures.<br>
</font></p>
</blockquote>
<br>
<font face="monospace, monospace"><font face="monospace,
monospace">That's documented in Template::Manual::Variables<font face="monospace, monospace"><font face="monospace,
monospace"><font face="monospace, monospace"><font face="monospace, monospace"><font face="monospace,
monospace">, which states</font><br>
<font face="monospace, monospace"><br>
<font face="monospace, monospace">> </font></font></font></font></font></font></font></font><font face="monospace, monospace"><font face="monospace, monospace"><font face="monospace, monospace"><font face="monospace,
monospace"><font face="monospace, monospace"><font face="monospace, monospace"><font face="monospace,
monospace"><font face="monospace, monospace">
</font>Any key in a hash which starts with a '_' or
'.' character will be considered private ...<br>
</font></font></font><br>
</font></font></font></font><br>
</blockquote>
<br>
</span><p>Thanks Russell, that's exactly it. Obviously I didn't RTFM (or
had forgotten I'd done it eons ago).<span class="HOEnZb"><font color="#888888"><br>
</font></span></p><span class="HOEnZb"><font color="#888888">
<pre class="m_7293474325175980252moz-signature" cols="72">--
Richard Jones</pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/<wbr>mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>