summaryrefslogtreecommitdiffstats
path: root/examples/nodejs-mongodb-mongoose-restify/templates
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify/templates')
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/templates/dashboard/page.html3
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/templates/guestbook/form.html2
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html7
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/templates/guestbook/template.html4
-rw-r--r--examples/nodejs-mongodb-mongoose-restify/templates/layout.html8
5 files changed, 24 insertions, 0 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/dashboard/page.html b/examples/nodejs-mongodb-mongoose-restify/templates/dashboard/page.html
new file mode 100644
index 0000000..e508149
--- /dev/null
+++ b/examples/nodejs-mongodb-mongoose-restify/templates/dashboard/page.html
@@ -0,0 +1,3 @@
+
+<h3>Guestbook</h3>
+
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/form.html b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/form.html
new file mode 100644
index 0000000..daf224e
--- /dev/null
+++ b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/form.html
@@ -0,0 +1,2 @@
+<textarea class="message"></textarea>
+<button class="post-message">Post Message</button>
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html
new file mode 100644
index 0000000..1256a56
--- /dev/null
+++ b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html
@@ -0,0 +1,7 @@
+<% console.log(messages);_.each(messages, function(message) { %>
+
+<p><%= message.get('message') %></p>
+<em><%= message.get('date') %></em>
+
+
+<% }); %>
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/template.html b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/template.html
new file mode 100644
index 0000000..2bb9d88
--- /dev/null
+++ b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/template.html
@@ -0,0 +1,4 @@
+
+<div class="guestbook-form-container"></div>
+<hr />
+<div class="guestbook-list-container"></div>
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/layout.html b/examples/nodejs-mongodb-mongoose-restify/templates/layout.html
new file mode 100644
index 0000000..3ab5aca
--- /dev/null
+++ b/examples/nodejs-mongodb-mongoose-restify/templates/layout.html
@@ -0,0 +1,8 @@
+<div class="header">
+ <h1>Node.js, MongoDb, Mongoose, Restify</h1>
+ <p>This example shows how to do blah blah</p>
+</div>
+<div style="clear: both;"></div>
+<div class="page">Loading</div>
+<div style="clear: both;"></div>
+<div class="footer"></div>