Skip to content

Instantly share code, notes, and snippets.

@HussainArif12
Last active November 24, 2020 17:31
<table>
<thead>
<tr>
<th>Title</th>
<th>Date</th>
<th></th>
</tr>
</thead>
<tbody>
{{#each notes}}
<tr>
<td><a href="notes/{{_id}}">{{title}}</a></td>
<td>{{dateCreated}} </td>
<td>
<a href="/notes/edit/{{_id}}">Edit page</a>
<form action="/notes/delete/{{_id}}" method="POST" >
<input type="hidden" name="_method" value="DELETE">
<button type="submit">Delete note</button>
</form>
</td>
</tr>
</tbody>
{{/each}}
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment