How to pass partials to a Dust.js template
I have consulted the Dust.js GitHub page and it says that I can pass partials to templates as shown below: {@partial checkbox_title="JM"} {>toggle/} {/partial} and like this: {>toggle checkbox_title="Hi JM"/} I've tried both and neither of them worked, so I used the following: Parent: {< checkbox_title} Hi JM {/checkbox_title} {>toggle/} Child: {+checkbox_title/} The above works, except when I try to render a template using the following: dust.render("toggle", base.push({checkbox_title:"hhhhhh"}), function(err, html) { console.log(html); }); Aim: to override the block in the child template