Blog-App-Buffalo
Blog-App-Buffalo copied to clipboard
Error printing template helper
In every template you have the following snippet for printing error messages:
<%= if (errors) { %>
<%= for (key, val) in errors { %>
...
<% } %>
<% } %>
Would not it be nice to refactor it into a template helper similar to what you did for CSRF token in render.go
?
That would reduce the amount of template code significantly and make it more readable.