⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chapter.erb

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 ERB
字号:
 <div class="top"><div class="prevnext">  <% if previous_chapter %>    <a href="chapter-<%= previous_chapter.index %>.html">Previous (<%= previous_chapter.index %>. <%= previous_chapter.title %>)</a> |  <% end %>  <a href="index.html">Up</a>  <% if next_chapter %>    | <a href="chapter-<%= next_chapter.index %>.html">Next (<%= next_chapter.index %>. <%= next_chapter.title %>)</a>  <% end %></div></div><h1><%= object.index %>. <%= object.title %></h1><% object.sections.each do |section|   if section.title %>     <h2>       <a name="s<%= section.index %>"></a>       <%= object.index %>.<%= section.index %>. <%= section.title %>     </h2>   <% end %>   <div class="section">     <%= section.content.to_html %>   </div><% end %><div class="bottom"><div class="prevnext">  <% if previous_chapter %>    <a href="chapter-<%= previous_chapter.index %>.html">Previous (<%= previous_chapter.index %>. <%= previous_chapter.title %>)</a> |  <% end %>  <a href="index.html">Up</a>  <% if next_chapter %>    | <a href="chapter-<%= next_chapter.index %>.html">Next (<%= next_chapter.index %>. <%= next_chapter.title %>)</a>  <% end %></div></div>

⌨️ 快捷键说明

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