Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var name;
var hps = require('/extensions/app/greg-publisher-defaults/themes/default/helpers/view-asset.js');
var that = this;
/*
In order to inherit all variables in the default helper
*/
for (name in hps) {
if (hps.hasOwnProperty(name)) {
that[name] = hps[name];
}
}
var fn = that.resources||function() { return {} };
var resources = function(page, meta) {
var o = fn(page, meta);
if (!o.css) {
o.css = [];
}
if(!o.js){
o.js = [];
}
if(!o.code){
o.code = [];
}
o.css.push('custom-rxt.css');
return o;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.