Creating the template to edit posts
Now we are only missing the template to edit the posts. To add this, we will create a file called editPost.html
inside our my-meteor-blog/client/templates
folder, and fill it with the following lines of code:
<template name="editPost"> <div class="editPost"> <form> <label> Title <input type="text" name="title" placeholder="Awesome title" value="{{title}}"> </label> <label> Description <textarea name="description" placeholder="Short description displayed in posts list" rows="3">{{description}}</textarea> </label> <label> Content <textarea name="text" rows="10" placeholder="Brilliant content">{{text}}</textarea> </label> <button type="submit" class="save">Save Post</button> </form> </div> </template>
As we...