Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
컨트롤러, 뷰, 테스트까지 한 번에 적용 * #header: id, header: element, .header: class
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>게시글 페이지</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<header id="header"></header> | ||
|
||
<main> | ||
<header> | ||
<h1>첫번째 글</h1> | ||
</header> | ||
|
||
<aside> | ||
<p>Uno</p> | ||
<p><a href="https://github.com/jmjmjames" target="_blank">jm@gmail.com</a></p> | ||
<p> | ||
<time datetime="2022-01-01T00:00:00">2022-01-01</time> | ||
</p> | ||
<p>#java</p> | ||
</aside> | ||
|
||
<section> | ||
<p>본문<br><br></p> | ||
|
||
<div> | ||
<form> | ||
<label for="articleComment" hidden>댓글</label> | ||
<textarea id="articleComment" placeholder="댓글 쓰기.." rows="3"></textarea> | ||
<button type="submit">쓰기</button> | ||
</form> | ||
|
||
<ul> | ||
<li> | ||
<div> | ||
<time><small>2022-01-01</small></time> | ||
<strong>Jm</strong> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> | ||
Lorem ipsum dolor sit amet | ||
</p> | ||
</div> | ||
</li> | ||
<li> | ||
<div> | ||
<time><small>2022-01-11</small></time> | ||
<strong>Jm</strong> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> | ||
Lorem ipsum dolor sit amet | ||
</p> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<nav> | ||
<a href="#">이전 글</a> | ||
<a href="#">다음 글</a> | ||
</nav> | ||
</section> | ||
|
||
</main> | ||
|
||
<footer id="footer"></footer> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<thlogic> | ||
<!-- #header: id, header: element, .header: class--> | ||
<attr sel="#header" th:replace="header :: header"/> | ||
<attr sel="#footer" th:replace="footer :: footer"/> | ||
</thlogic> |