Commits

James Sumners committed 04bcecb

* Added the template file for index.html's content.
* Updated the example Baker.json with the correct "pages" format.
* Updated the example Baker.json to reflect the added snippet.

Comments (0)

Files changed (3)

example/Baker.json

 	},
 
 	"snippets": {
+		"index_content": "index_content.html",
 		"site_nav": "site_nav.html"
 	},
 
 	"pages": {
-		"index.html": {
-			"template":  "template.html"
-		}
+		"index.html": "template.html"
 	}
 }

example/templates/index_content.html

+<article>
+	<h1>njsBaker Example</h1>
+	<p>This is an example to show how njsBaker builds static HTML sites.</p>
+	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
+	tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
+	quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
+	consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
+	cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
+	proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
+</article>

example/templates/template.html

 	{{site_nav}}
 
 	<section id="content">
-		{{content}}
+		{{index_content}}
 	</section>
 
 	<footer>