diff --git a/generators/newapp/templates/templates/_flash.html.tmpl b/generators/newapp/templates/templates/_flash.html.tmpl index a7ec2001f..9f3854fed 100644 --- a/generators/newapp/templates/templates/_flash.html.tmpl +++ b/generators/newapp/templates/templates/_flash.html.tmpl @@ -1,3 +1,4 @@ +<%= if (len(flash) > 0) { %>
<%= for (k, messages) in flash { %> @@ -10,3 +11,4 @@ <% } %>
+<% } %> \ No newline at end of file diff --git a/generators/newapp/templates/templates/application.html.tmpl b/generators/newapp/templates/templates/application.html.tmpl index 698707cd8..a1ecef968 100644 --- a/generators/newapp/templates/templates/application.html.tmpl +++ b/generators/newapp/templates/templates/application.html.tmpl @@ -1,7 +1,11 @@ + Buffalo - {{ .opts.Name.Title }} + {{- if not .opts.WithWebpack }} + + {{- end }} <%= stylesheetTag("application.css") %>