diff --git a/articles/grasshopper-shoutbox.markdown b/articles/grasshopper-shoutbox.markdown index ef2367d..4c1747b 100644 --- a/articles/grasshopper-shoutbox.markdown +++ b/articles/grasshopper-shoutbox.markdown @@ -128,7 +128,7 @@ Grasshopper allows having an application wide layout into which the views of req The layout file can use this piece of code to specify the location where the contents of the views have to be included. - <%= include(view) %> + <% include(view); %> The layout for our shoutbox would look like this. @@ -142,7 +142,7 @@ Our shoutbox has a single view as it does all the work on a single page. At the <% if(shout.errors) { %>
- <%= errors(shout).join('
') %> + <%h errors(shout).join('
') %>
<% } %> <% if(flash['success']) { %> @@ -157,10 +157,10 @@ It then lists all the available shouts including the name and gravatar of the pe<%= h(shout.message()) %>
+<%= shout.message() %>
- <%= errors(shout).join('
') %> + <%h errors(shout).join('
') %>
<% } %> <% if(flash['success']) { %> @@ -13,10 +13,10 @@<%= h(shout.message()) %>
+<%= shout.message() %>