How to write mustache template for nested list of objects.

37 views
Skip to first unread message

harsha vardhan

unread,
Mar 11, 2024, 7:47:29 PMMar 11
to mustache.java
Object can be below type
public interface Step {} public class ParallelStep implements Step{List<Step> steps;} public class SerialStep implements Step{List<Step> steps;} public class LeafStep implements Step{String name; String transition; }

SerialStep can be list of ParallelStep type, where each ParallelStep is a LeafStep type ParallelStep can be list of SerialStep type, where each SerialStep is a LeafStep type.

Reply all
Reply to author
Forward
0 new messages