File: tutorial.erb

package info (click to toggle)
libneedle-ruby 1.2.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,436 kB
  • ctags: 886
  • sloc: ruby: 4,464; makefile: 52
file content (30 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<h1>Tutorial #<%= object.index %>. <%= object.title %></h1>

<p>The sources for this tutorial may be found in the <tt>tutorial/<%= "%02d" % object.index %></tt>
directory of the Copland distribution.</p>

<% if object.intro %>

  <h2>Introduction</h2>

  <%= object.intro.to_html %>

<% end %>

<h2>Steps</h2>

<ol>
<% object.steps.each do |step| %>

<li><%= step.to_html %></li>

<% end %>
</ol>

<% if object.summary %>

  <h2>Summary</h2>

  <%= object.summary.to_html %>

<% end %>