base.rhtml

来自「本书源码对于学习RUBY网络编程语言非常有帮助。」· RHTML 代码 · 共 32 行

RHTML
32
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>  <title><%= @page_title %></title>  <link rel="stylesheet" type="text/css" href="/stylesheets/base.css"/></head><body><table>  <tr>    <td><%= link_to "Home",                 :controller => "main",                 :action     => "welcome" %></td>    <% if @c %>    <td><%= link_to "View cart",                 :controller => "customer",                 :action     => "view_cart" %></td>    <td><%= link_to "Log out",                 :controller => "customer",                 :action     => "logout" %></td>    <% end %>  </tr></table><h1 class="banner">The R4R Music Store</h1><%= @content_for_layout %><hr/><p>Copyright &copy; 2006, <%= link_to "R4R Music",                                   :controller => "main",                                   :action     => "welcome" %></p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?