Dept of liquid file

22 views
Skip to first unread message

Henrik Johansson

unread,
Jun 13, 2019, 10:39:00 AM6/13/19
to dotliquid
Hi, I am currently working on a templating for some objects which are quite deep. I came across a problem when trying the following code:

Hash hash = Hash.FromAnonymousObject(data.softTypes[0].instances[4].data);

In the file:

{{Name.value }}

Works and gives me what I want. However, moving it down a step does not:


Hash hash = Hash.FromAnonymousObject(data.softTypes[0].instances[4]);

In the file:

{{data.Name.value }}

This results in just a blank, I dont know why. The class have the added : Drop as well so it is not an object related problem.
Greatful for any help!
Reply all
Reply to author
Forward
0 new messages