Is there anyway for 2 different plugins to effect one handlebars template?


(Steven Slade) #1

Is there anyway for 2 different plugins that include handlebars javascript variables to effect one handlebars template found in Admin/Customization/CSS/Header:

<script id="notification-menu-item" type="text/x-handlebars-template">

I have tried to make both of the sources go the same template id. Both files have this:

var source                 = $("#notification-menu-item").html();
var template               = Handlebars.compile(source);

But only one of the sources’ variable come through to the template. Is there anyway to have one template get its {{variables}} from two different sources found in two plugins?