1.2.4 • Published 9 years ago

uhf v1.2.4

Weekly downloads
11
License
ISC
Repository
-
Last release
9 years ago

UHF

Universal Header and Footer

Simple getter for the UHF service


Install the package from npm.

npm install uhf

Require the package.

var uhf = require('uhf');

Specify the options.

var uhfOptions = {
  locale: "es-es",
  partnerId: "uhfportal",
  headerId: "uhfportalheader",
  footerId: "uhfportalfooter",
}
OptionDescription
localeCulture code for localized string (lang-loc)
partnerIdUHF Partner ID
headerIdFile name of the header document
footerIdFile name of the footer document
envEnviroment (ppe, test, or dev; default is production)
targetingCompass targeting tags to add to the query, separated by '&'
previewRetrieve unpublished Compass content
debugInclude unminified code for easier debugging
versionUHF version (classic or onerf, default is onerf)

Get the UHF, passing the options. Define your callback and check for errors.

uhf.getUhf(uhfOptions, function(error, uhfResult) {
  if (!error) {
    res.render('index', { title: 'Express', uhf: uhfResult });
  }
  else {
    console.log(error);
  }
})
1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.0

9 years ago