<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><%= h(yield(:title) || "Untitled") %></title>
<%= stylesheet_link_tag 'application' %>
<%= yield(:head) %>
</head>
<body>
<div id="container">
<div id="head">
<div id="user_nav">
<% if current_user %>
<%= link_to "Edit Profile", edit_user_path(:current) %> |
<%= link_to "Logout", logout_path %>
<% else %>
<%= link_to "Register", new_user_path %> |
<%= link_to "Login", login_path %>
<% end %>
</div>
<div>[head]</div>
<%= render :file=>"layouts/head.html.erb" %>
</div>
<div id="trunk">
<div id="col-left">
<div>[trunk>col-left]</div>
<%= render :file => "layouts/col_left.html.erb" %>
</div>
<div id="col-center">
<div>[trunk>col-center]</div>
<div>
<%- if show_title? -%>
<h1><%=h yield(:title) %></h1>
<%- end -%>
<%- flash.each do |name, msg| -%>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<%- end -%>
<%= yield %>
</div>
</div>
<div id="col-right">
<div>[trunk>col-right]</div>
<%= render :file=>"layouts/col_right.html.erb" %>
</div>
</div>
</div>
<div id="foot">
<div>[foot]</div>
<%= render :file=>"layouts/foot.html.erb" %></div>
</div>
</div>
</body>
</html>
작성자 : 닥터최