Home Index 뷰 생성
Home/views 디렉터리에 Index.html 파일을 생성하고 다음과 같이 코드를 작성한다.
▼ app/views/Home/Index.html
{{set . “title” “Home”}} {{template “header.html” .}} <header class=“hero-unit” style=“background-color:#A9F16C”> <div class=“container”> <div class=“row”> <div class=“hero-text”> <h1>Hello world!</h1> <p></p> </div> </div> </div> </header> <div class=“container”> <div class=“row”> <div class=“span6”> {{template “flash.html” .}} </div> </div> </div> {{template “footer.html” .}}