Day 8
๊ฒ์๊ธ ์์ , ์ญ์ ํ๋ฉด ๋ง๋ค๊ธฐ
๊ฒ์๊ธ ์์ ํ๋ฉด mustache ํ์ผ์ ์์ฑ
{{>layout/header}}
<h1>๊ฒ์๊ธ ์์ </h1>
<div class="col-md-12">
<div class="col-md-4">
<form>
<div class="form-group">
<label for="title">๊ธ ๋ฒํธ</label>
<input type="text" class="form-control" id="id" value="{{post.id}}" readonly>
</div>
<div class="form-group">
<label for="title">์ ๋ชฉ</label>
<input type="text" class="form-control" id="title" value="{{post.title}}">
</div>
<div class="form-group">
<label for="author"> ์์ฑ์ </label>
<input type="text" class="form-control" id="author" value="{{post.author}}" readonly>
</div>
<div class="form-group">
<label for="content"> ๋ด์ฉ </label>
<textarea class="form-control" id="content">{{post.content}}</textarea>
</div>
</form>
<a href="/" role="button" class="btn btn-secondary">์ทจ์</a>
<button type="button" class="btn btn-primary" id="btn-update">์์ ์๋ฃ</button>
<button type="button" class="btn btn-danger" id="btn-delete">์ญ์ </button>
</div>
</div>
{{>layout/footer}}Last updated