jsonresume-theme-flat
Advanced tools
Comparing version 0.2.2 to 0.2.4
@@ -25,1 +25,5 @@ var fs = require("fs"); | ||
}); | ||
Handlebars.registerHelper("nl2br", function(value) { | ||
return value.replace(/\n/g, "</p><p>"); | ||
}); |
{ | ||
"name": "jsonresume-theme-flat", | ||
"version": "0.2.2", | ||
"version": "0.2.4", | ||
"description": "A theme for jsonresume.org", | ||
@@ -5,0 +5,0 @@ "author": "Mattias Erming", |
@@ -16,3 +16,3 @@ // | ||
var port = 8080; | ||
http.createServer(function(req, res) { | ||
http.createServer(function(req, res) { | ||
res.writeHead(200, {"Content-Type": "text/html"}); | ||
@@ -22,5 +22,5 @@ res.end(render()); | ||
console.log("Serving theme"); | ||
console.log("Preview: http://localhost:8080/"); | ||
console.log("Serving.."); | ||
function render() { | ||
@@ -27,0 +27,0 @@ try { |
Sorry, the diff of this file is not supported yet
12127
51