Open alexeyismirnov opened 1 year ago
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 ?
render.go
That would reduce the amount of template code significantly and make it more readable.
In every template you have the following snippet for printing error messages:
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.