javascript - Rendering a partial multiple times in Handlebars+Nodejs -


i'm quite new world of node , handlebars , have managed single partial rendering in node doing following:

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

and in html page have following

{{> results}}    

which renders results.html partial. need have same partial rendering on index page multiple times each different set of data, i've tried following:

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

but didn't work.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -