1

I'm quite new to the world of Node and Handlebars and have managed to get a single partial rendering in Node doing the following:

response.render('index', 
        {  
            'data': data, 
            partials: 
            {
                results: 'results'
            }
        });

and in my html page I have the following

{{> results}}   

Which renders my results.html partial. But now I need to have the same partial rendering on the index page multiple times each with a different set of data, I've tried the following:

response.render('index', 
        {  

            partials: 
            {
                'data': data,
                results: 'results'
            }
        });

But this didn't work.

Adrian Heine
  • 4,051
  • 2
  • 30
  • 43
Tom Maton
  • 1,564
  • 3
  • 23
  • 41

0 Answers0