diff options
author | Thomas Davis <thomasalwyndavis@gmail.com> | 2012-04-23 00:05:35 +1000 |
---|---|---|
committer | Thomas Davis <thomasalwyndavis@gmail.com> | 2012-04-23 00:05:35 +1000 |
commit | 9ab404f5041fb88541ec3b01add42847e54487d2 (patch) | |
tree | 21bf480435d0cd2f91d6a2189e9046f2b340ae54 /examples/nodejs-mongodb-mongoose-restify | |
parent | dd670c29a985140c2af467e8568ce839d4913150 (diff) | |
download | backbonetutorials-9ab404f5041fb88541ec3b01add42847e54487d2.zip backbonetutorials-9ab404f5041fb88541ec3b01add42847e54487d2.tar.gz backbonetutorials-9ab404f5041fb88541ec3b01add42847e54487d2.tar.bz2 |
ops
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify')
3 files changed, 16 insertions, 4 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/css/theme.css b/examples/nodejs-mongodb-mongoose-restify/css/theme.css index 12402ee..48faf8e 100644 --- a/examples/nodejs-mongodb-mongoose-restify/css/theme.css +++ b/examples/nodejs-mongodb-mongoose-restify/css/theme.css @@ -27,3 +27,13 @@ a:hover { .un-bulleted { list-style: none; } + +.message { + font-size: 110%; +} + +.date { + color: #ccc; + font-size: 90%; + +} 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> |