text: var fs = require("fs");
  var Handlebars = require("handlebars");
  
  function render(resume) {
  	var css = fs.readFileSync(__dirname + "/style.css", "utf-8");
  	var template = fs.readFileSync(__dirname + "/resume.template", "utf-8");
  	// var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
  	var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
  
  	// Nicer dates
  	Handlebars.registerHelper('date', function(date) {
  	  var theDate = new Date(date);
  
  	  return months[theDate.getMonth()] + ' ' + theDate.getFullYear();
  	});
  
  	return Handlebars.compile(template)({
  		css: css,
  		resume: resume
  	});
  }
  
  Handlebars.registerHelper('paragraphSplit', function(plaintext) {
      var i, output = '',
          lines = plaintext.split(/\r\n|\r|\n/g);
      for (i = 0; i < lines.length; i++) {
          if(lines[i]) {
              output += '<p>' + lines[i] + '</p>';
          }
      }
      return new Handlebars.SafeString(output);
  });
  
  module.exports = {
  	render: render
  };
  