Rendering one mustache partial multiple times with different data

后端 未结 2 1940
耶瑟儿~
耶瑟儿~ 2021-02-08 23:47

I have two objects that I want to render side by side. There is never a case where I will want to render more, or less than two. My model is setup like so:

{
  o         


        
2条回答
  •  清酒与你
    2021-02-09 00:34

    You could adjust your model to include the h1 and div so you could loop over a list sending different data to objPartial each time

    
    
    
    
    
    

    See it on jsFiddle

提交回复
热议问题