diff --git a/index.js b/index.js
index e4275d3..8037e5d 100644
--- a/index.js
+++ b/index.js
@@ -1,9 +1,11 @@
var fs = require("fs");
var Handlebars = require("handlebars");
+function render(resume) {
+ var template = fs.readFileSync(__dirname + "/resume.template", "utf-8");
+ return Handlebars.compile(template)(resume);
+}
+
module.exports = {
- render: function(resume) {
- var template = fs.readFileSync(__dirname + "/resume.template", "utf-8");
- return Handlebars.compile(template)(resume);
- }
+ render: render
};
diff --git a/package.json b/package.json
index e9645de..3d4e7b5 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,6 @@
"license": "MIT",
"dependencies": {
"handlebars": "^2.0.0-alpha.4",
- "resume-schema": "0.0.11"
+ "resume-schema": "jsonresume/resume-schema"
}
}
diff --git a/resume.template b/resume.template
index d121399..2401e89 100644
--- a/resume.template
+++ b/resume.template
@@ -1,5 +1,269 @@
- Hello, world.
+
+
+ {{#basics}}
+
+ {{#name}}
+
+ {{.}}
+
+ {{/name}}
+ {{#email}}
+
+ {{.}}
+
+ {{/email}}
+ {{#phone}}
+
+ {{.}}
+
+ {{/phone}}
+ {{#summary}}
+
+ {{.}}
+
+ {{/summary}}
+ {{#location}}
+
+ {{#address}}
+
+ {{.}}
+
+ {{/address}}
+ {{#postalCode}}
+
+ {{.}}
+
+ {{/postalCode}}
+ {{#city}}
+
+ {{.}}
+
+ {{/city}}
+ {{#countryCode}}
+
+ {{.}}
+
+ {{/countryCode}}
+ {{#region}}
+
+ {{.}}
+
+ {{/region}}
+
+ {{/location}}
+ {{#website}}
+
+ {{.}}
+
+ {{/website}}
+ {{#if profiles.length}}
+
+ {{#profiles}}
+
+ {{#network}}
+
+ {{.}}
+
+ {{/network}}
+ {{#username}}
+
+ {{.}}
+
+ {{/username}}
+ {{#url}}
+
+ {{.}}
+
+ {{/url}}
+
+ {{/profiles}}
+
+ {{/if}}
+
+ {{/basics}}
+
+ {{#if work.length}}
+
+ {{#work}}
+
+ {{#startDate}}
+
+ {{.}}
+
+ {{/startDate}}
+ {{#endDate}}
+
+ {{.}}
+
+ {{/endDate}}
+ {{#position}}
+
+ {{.}}
+
+ {{/position}}
+ {{#website}}
+
+ {{/website}}
+ {{#summary}}
+
+ {{.}}
+
+ {{/summary}}
+ {{#if highlights.length}}
+
+ {{#highlights}}
+ - {{.}}
+ {{/highlights}}
+
+ {{/if}}
+
+ {{/work}}
+
+ {{/if}}
+
+ {{#if education.length}}
+
+ {{#education}}
+
+ {{#startDate}}
+
+ {{.}}
+
+ {{/startDate}}
+ {{#endDate}}
+
+ {{.}}
+
+ {{/endDate}}
+ {{#institution}}
+
+ {{.}}
+
+ {{/institution}}
+ {{#area}}
+
+ {{.}}
+
+ {{/area}}
+ {{#studyType}}
+
+ {{.}}
+
+ {{/studyType}}
+ {{#if courses.length}}
+
+ {{#courses}}
+ - {{.}}
+ {{/courses}}
+
+ {{/if}}
+
+ {{/education}}
+
+ {{/if}}
+
+ {{#if awards.length}}
+
+ {{#awards}}
+
+ {{#title}}
+
+ {{.}}
+
+ {{/title}}
+ {{#date}}
+
+ {{.}}
+
+ {{/date}}
+ {{#awarder}}
+
+ {{.}}
+
+ {{/awarder}}
+
+ {{/awards}}
+
+ {{/if}}
+
+ {{#if publications.length}}
+
+ {{#publications}}
+
+ {{#name}}
+
+ {{.}}
+
+ {{/name}}
+ {{#publisher}}
+
+ {{.}}
+
+ {{/publisher}}
+ {{#releaseDate}}
+
+ {{.}}
+
+ {{/releaseDate}}
+ {{#website}}
+
+ {{/website}}
+
+ {{/publications}}
+
+ {{/if}}
+
+ {{#if skills.length}}
+
+ {{#skills}}
+
+ {{#name}}
+
+ {{.}}
+
+ {{/name}}
+ {{#level}}
+
+ {{.}}
+
+ {{/level}}
+ {{#if keywords.length}}
+
+ {{#keywords}}
+ - {{.}}
+ {{/keywords}}
+
+ {{/if}}
+
+ {{/skills}}
+
+ {{/if}}
+
+ {{#if references.length}}
+
+ {{#references}}
+
+ {{#name}}
+
+ {{.}}
+
+ {{/name}}
+ {{#reference}}
+
+ {{.}}
+
+ {{/reference}}
+
+ {{/references}}
+
+ {{/if}}
+
+