{{ messages[0].message }}
Refactoring views to layout files
There's a lot of duplication in our views right now. Same header, same links, same structure, and the only thing really different is the body of the views. Let's see how we can use edge templates to greatly simplify how we create views.
{{ comment.user.name }} {{ comment.created_at }}
{{ comment.likes.length }}
{{ childComment.user.name }} {{ childComment.created_at }}
{{ childComment.likes.length }}