diff options
| author | Ryan Waldron <rew@erebor.com> | 2012-06-13 14:52:16 -0500 |
|---|---|---|
| committer | Ryan Waldron <rew@erebor.com> | 2012-06-13 14:52:16 -0500 |
| commit | fa33a00a9f2cbd6eceb2c4a2e2a83e799e1f847f (patch) | |
| tree | e83bc1e5021e1d0886a9c052ad148749c823fa73 /lib/waldo | |
| parent | f163650c17a1621851ea36fca797291d8cd35939 (diff) | |
Add title to paragraph template
Diffstat (limited to 'lib/waldo')
| -rw-r--r-- | lib/waldo/asciidoc/render_templates.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/waldo/asciidoc/render_templates.rb b/lib/waldo/asciidoc/render_templates.rb index 4bd7a2d1..ecd1959f 100644 --- a/lib/waldo/asciidoc/render_templates.rb +++ b/lib/waldo/asciidoc/render_templates.rb @@ -124,6 +124,9 @@ class SectionParagraphTemplate < BaseTemplate def template @template ||= ERB.new <<-EOF <div class='paragraph'> + <% if !title.nil? %> + <div class='title'><%= title %></div> + <% end %> <p><%= content %></p> </div> EOF |
