Skip to content

Instantly share code, notes, and snippets.

@Kobedinho
Last active March 4, 2016 22:45
Show Gist options
  • Save Kobedinho/0eed74a11d31a7ec3aea to your computer and use it in GitHub Desktop.
Save Kobedinho/0eed74a11d31a7ec3aea to your computer and use it in GitHub Desktop.
Custom view - Handelbars partials - Handlebars.registerPartial - app.template
<!-- File : custom/modules/QS_Promociones/clients/base/views/promotion-configurator/promotion-configurator.hbs-->
...
<div class="row-fluid" id="accounts_content">
<!-- loading partial -->
{{> account_filter}}
</div>
...
// File : custom/modules/QS_Promociones/clients/base/views/promotion-configurator/promotion-configurator.js
({
initialize: function(){
var self = this;
this._super('initialize', arguments);
// Partial : custom/modules/QS_Promociones/clients/base/views/promotion-configurator/account_filter.hbs
// Template name : <view>.<handelbars>.<module_name>
Handlebars.registerPartial('account_filter', app.template.get('promotion-configurator.account_filter.QS_Promociones'));
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment