Skip to content

Instantly share code, notes, and snippets.

@splinter
Created October 4, 2016 06:54
Show Gist options
  • Save splinter/d7cef8a34b8a4b4580dc68ff01f3da32 to your computer and use it in GitHub Desktop.
Save splinter/d7cef8a34b8a4b4580dc68ff01f3da32 to your computer and use it in GitHub Desktop.
app.renderer = function(ctx) {
var decoratorApi = require('/modules/page-decorators.js').pageDecorators;
return {
pageDecorators: {
navigationBar: function(page) {
return require('/extensions/app/mycustom-store/modules/decorators.js').api.navigationBar(ctx, page, this); ///decoratorApi.navigationBar(ctx, page, this);
},
searchBar: function(page) {
return decoratorApi.searchBar(ctx, page, this);
},
authenticationDetails: function(page) {
return decoratorApi.authenticationDetails(ctx, page, this);
},
recentAssetsOfActivatedTypes: function(page) {
return decoratorApi.recentAssetsOfActivatedTypes(ctx, page, this);
},
tags: function(page) {
return decoratorApi.tags(ctx, page);
},
popularAssets:function(page){
return decoratorApi.popularAssets(ctx,page,this);
},
searchHistory: function (page, meta) {
return decoratorApi.searchHistory(ctx, page, this);
}, taxonomy: function(page) {
require('/modules/page-decorators.js').pageDecorators.taxonomyAvailability(ctx, page, this);
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment