traverse scala Map

47 views
Skip to first unread message

Teodor Dimov

unread,
May 2, 2015, 1:07:04 PM5/2/15
to mustac...@googlegroups.com
Hi Sam, i am wondering how to traverse scala map because {{#map}} {{key}} {{value}}{{/map}} don`t work.
i want to traverse the map like list not for  some key. I see if i just {{map}} it prints {{key}}={{value}}.  

Sam

unread,
Jun 30, 2015, 5:01:39 PM6/30/15
to mustac...@googlegroups.com, teod...@gmail.com
Since it isn't obvious what it means to traverse a map, I suggest that you put the traversal transformation in your view code. If you are doing this all the time, you could extend the ScalaObjectHandler with the way you would like it to be handled.

Sam
Reply all
Reply to author
Forward
0 new messages