Skip to content

Instantly share code, notes, and snippets.

@Mozu-CS
Created March 14, 2016 22:52
Show Gist options
  • Save Mozu-CS/640a881a7e7101fba088 to your computer and use it in GitHub Desktop.
Save Mozu-CS/640a881a7e7101fba088 to your computer and use it in GitHub Desktop.
Simple storefront snippets for testing Hypr features.
// @site: t14923-s21420.sandbox.mozu.com
var Hypr = require("hyprlive");
var template = [
'HYPR CODE HERE!!!'
].join('\n');
console.log(template);
var output = Hypr.engine.render(template, {
locals: {
// MODELS GO HERE!!!
}
});
console.debug('TEMPLATE OUTPUT:', '\n' + output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment