diff options
author | Mateja <mail@matejamaric.com> | 2021-05-03 00:56:35 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-05-03 00:56:35 +0200 |
commit | 3460f9ad874495469cfa8d4aaa42b66f5e427bf2 (patch) | |
tree | 5595313907d53ee8bcb5f3e8ca684b7a44126ee2 /views | |
parent | c2649bfff51a175508685e493d8bfae4713cda16 (diff) | |
download | node-playground-3460f9ad874495469cfa8d4aaa42b66f5e427bf2.tar.gz node-playground-3460f9ad874495469cfa8d4aaa42b66f5e427bf2.zip |
Use MongoDB (with Mongoose) to store posts.
Diffstat (limited to 'views')
-rw-r--r-- | views/home.handlebars | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/home.handlebars b/views/home.handlebars index 02f31de..768b62d 100644 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -1,15 +1,17 @@ <div class="container"> <h1 class="mt-2">Posts</h1> - <div class="card"> + {{#each posts}} + <div class="card mt-3"> <div class="card-header"> - Lorem ipsum dolor sit amet + {{this.title}} </div> <div class="card-body"> <div class="card-text"> - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. + {{this.text}} </div> </div> </div> + {{/each}} </div> |