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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -