From b901f877bb2d807ecac9813e14a93cc4fa900a42 Mon Sep 17 00:00:00 2001 From: Jordan Scales Date: Sun, 7 Oct 2012 14:10:39 -0400 Subject: [PATCH] reading slideshow's title from JSON --- lib/render.js | 2 +- templates/layout.mustache | 100 +------------------------------------- 2 files changed, 2 insertions(+), 100 deletions(-) diff --git a/lib/render.js b/lib/render.js index c76c01a..472906b 100644 --- a/lib/render.js +++ b/lib/render.js @@ -26,7 +26,7 @@ exports.render = function(json, options) { fs.readFile('templates/layout.mustache', 'utf8', function(err, data) { if (err) throw err; - var output = mustache.render(data, { slides: renders }); + var output = mustache.render(data, { slides: renders, title: json.name }); if (options.debug) { console.log(output); } else { diff --git a/templates/layout.mustache b/templates/layout.mustache index e504507..e88cacc 100644 --- a/templates/layout.mustache +++ b/templates/layout.mustache @@ -1,105 +1,7 @@ - Test + {{title}}