diff options
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify/templates')
-rw-r--r-- | examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html | 6 | ||||
-rw-r--r-- | examples/nodejs-mongodb-mongoose-restify/templates/layout.html | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html index 7f7541c..705229a 100644 --- a/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html +++ b/examples/nodejs-mongodb-mongoose-restify/templates/guestbook/list.html @@ -1,6 +1,6 @@ <% _.each(messages, function(message) { %> - -<p><%= message.get('message') %></p> -<em><%= message.get('date') %></em> +<!-- This isn't great sanitization and you will want something more secure for outputting untrusted data to the page --> +<pre class="message"><%= message.get('message').replace(/</g, '<') %></pre> +<em class="date"><%= message.get('date') %></em> <% }); %> diff --git a/examples/nodejs-mongodb-mongoose-restify/templates/layout.html b/examples/nodejs-mongodb-mongoose-restify/templates/layout.html index 3ab5aca..aeb9632 100644 --- a/examples/nodejs-mongodb-mongoose-restify/templates/layout.html +++ b/examples/nodejs-mongodb-mongoose-restify/templates/layout.html @@ -1,6 +1,8 @@ <div class="header"> <h1>Node.js, MongoDb, Mongoose, Restify</h1> - <p>This example shows how to do blah blah</p> + <p>This example is built on top of <a href="http://backboneboilerplate.com">backboneboilerplate.com</a>. If you have trouble please send me a direct email (thomasalwyndavis@gmail.com) and I will help you sort it out and update the example accordingly.</p> + <h3>Guestbook Example</h3> + <p>Hello my lovely guest, please leave a message in my guestbook!</p> </div> <div style="clear: both;"></div> <div class="page">Loading</div> |