[dancer-users] Question on MongoDB and Dancer

Russell Jenkins russell.jenkins at strategicdata.com.au
Wed Oct 18 10:42:01 BST 2017

On 18/10/17 8:13 pm, Richard Jones wrote:

> I've been caught by that before. Try [% 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.

That's documented in Template::Manual::Variables, which states

 > Any key in a hash which starts with a '_' or '.' character will be 
considered private ...

Hope that helps,
   aka veryrusty.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20171018/37026856/attachment.html>

More information about the dancer-users mailing list