;(function(e,t,n){function r(n,i){if(!t[n]){if(!e[n]){var s=typeof require=="function"&&require;if(!i&&s)return s(n,!0);throw new Error("Cannot find module '"+n+"'")}var o=t[n]={exports:{}};e[n][0](function(t){var i=e[n][1][t];return r(i?i:t)},o,o.exports)}return t[n].exports}for(var i=0;i<n.length;i++)r(n[i]);return r})({1:[function(require,module,exports){

var Handlebars = require("handlebars-runtime");
var template = require("./template.hbs");

Handlebars.registerPartial('link', require("./partial.hbs"));

Handlebars.registerHelper("capitalize", function(name) {
  return name[0].toUpperCase() + name.slice(1);
});


var data = {
  name: "esa",
  links: [
    { name: "Blog", url: "http://esa-matti.suuronen.org/" },
    { name: "Twitter", url: "https://twitter.com/esamatti" },
    { name: "Github", url: "https://github.com/epeli" }
  ]
};

window.onload = function() {
  document.body.innerHTML = template(data);
};

},{"./template.hbs":2,"./partial.hbs":3,"handlebars-runtime":4}],4:[function(require,module,exports){
Beispiel #2
0
module.exports = function() {

  // HELPERS
  Handlebars.registerHelper('upcase', upcase)

  // PARTIALS
  Handlebars.registerPartial('link', link);

}
var Handlebars = require("handlebars-runtime");
var template = require("./template.hbs");

Handlebars.registerPartial('link', require("./partial.hbs"));

Handlebars.registerHelper("capitalize", function(name) {
  return name[0].toUpperCase() + name.slice(1);
});


var data = {
  name: "esa",
  links: [
    { name: "Blog", url: "http://esa-matti.suuronen.org/" },
    { name: "Twitter", url: "https://twitter.com/esamatti" },
    { name: "Github", url: "https://github.com/epeli" }
  ]
};

window.onload = function() {
  document.body.innerHTML = template(data);
};